Avoid including Scanner.h in ParserBase.h

This commit is contained in:
Alex Beregszaszi
2017-06-22 22:22:19 +01:00
parent 08a5d144ac
commit 007ffe9430
3 changed files with 25 additions and 5 deletions
+4 -5
View File
@@ -23,7 +23,6 @@
#pragma once
#include <memory>
#include <libsolidity/parsing/Scanner.h>
#include <libsolidity/parsing/Token.h>
namespace dev
@@ -51,10 +50,10 @@ protected:
///@name Helper functions
/// If current token value is not _value, throw exception otherwise advance token.
void expectToken(Token::Value _value);
Token::Value currentToken() const { return m_scanner->currentToken(); }
Token::Value peekNextToken() const { return m_scanner->peekNextToken(); }
std::string currentLiteral() const { return m_scanner->currentLiteral(); }
Token::Value advance() { return m_scanner->next(); }
Token::Value currentToken() const;
Token::Value peekNextToken() const;
std::string currentLiteral() const;
Token::Value advance();
///@}
/// Creates a @ref ParserError and annotates it with the current position and the