From 094ee44f721054518ff384aef7cde1afe649636d Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 23 Oct 2014 19:22:30 +0200 Subject: Use boost errinfo. --- Parser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Parser.h') diff --git a/Parser.h b/Parser.h index 7cc41513..14338dc2 100644 --- a/Parser.h +++ b/Parser.h @@ -73,9 +73,12 @@ private: Token::Value expectAssignmentOperator(); ASTPointer expectIdentifierToken(); ASTPointer 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 m_scanner; }; -- cgit