diff options
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -73,9 +73,12 @@ private: Token::Value expectAssignmentOperator(); ASTPointer<ASTString> expectIdentifierToken(); ASTPointer<ASTString> getLiteralAndAdvance(); - void throwExpectationError(std::string const& _description); /// @} + /// Creates a @ref ParserError exception and annotates it with the current position and the + /// given @a _description. + ParserError createParserError(std::string const& _description) const; + std::shared_ptr<Scanner> m_scanner; }; |