139 char read(); |
139 char read(); |
140 void unread(); |
140 void unread(); |
141 void skipSpace(); |
141 void skipSpace(); |
142 bool isAtEnd() const { return m_state.position >= m_data.length(); } |
142 bool isAtEnd() const { return m_state.position >= m_data.length(); } |
143 bool tryMatch (const char* text, bool caseSensitive); |
143 bool tryMatch (const char* text, bool caseSensitive); |
|
144 void tokenMustBe (TokenType desiredType); |
144 |
145 |
145 template<typename... Args> |
146 template<typename... Args> |
146 void scriptError (QString text, Args... args) |
147 void scriptError (QString text, Args... args) |
147 { |
148 { |
148 scriptError (format (text, args...)); |
149 scriptError (format (text, args...)); |