diff -r e15a577a0bfe -r d1ac217c9165 src/script/parser.h --- a/src/script/parser.h Tue Feb 03 04:03:19 2015 +0200 +++ b/src/script/parser.h Tue Feb 03 15:26:07 2015 +0200 @@ -141,6 +141,7 @@ void skipSpace(); bool isAtEnd() const { return m_state.position >= m_data.length(); } bool tryMatch (const char* text, bool caseSensitive); + void tokenMustBe (TokenType desiredType); template void scriptError (QString text, Args... args) @@ -153,7 +154,7 @@ QByteArray m_data; QVector m_lineEndings; SavedState m_state; - AstNode* m_astRoot; + Ast::RootPointer m_astRoot; Token m_rejectedToken; void parseString();