1 #ifndef COMPILER_DISCARDPARSER_H_INCLUDED
2 #define COMPILER_DISCARDPARSER_H_INCLUDED
Definition: discardparser.hpp:14
Definition: discardparser.hpp:14
State mState
Definition: discardparser.hpp:17
State
Definition: discardparser.hpp:12
Definition: context.hpp:10
Location of a token in a source file.
Definition: tokenloc.hpp:10
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: discardparser.cpp:56
virtual bool parseFloat(float value, const TokenLoc &loc, Scanner &scanner)
Definition: discardparser.cpp:27
Error handling.
Definition: errorhandler.hpp:14
TokenLoc mTokenLoc
Definition: discardparser.hpp:18
virtual bool parseInt(int value, const TokenLoc &loc, Scanner &scanner)
Definition: discardparser.cpp:13
DiscardParser(ErrorHandler &errorHandler, const Context &context)
Definition: discardparser.cpp:7
Definition: discardparser.hpp:14
int code
Definition: crashcatcher.cpp:70
Parse a single optional numeric value or string and discard it.
Definition: discardparser.hpp:10
Parser base class.
Definition: parser.hpp:17
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: discardparser.cpp:41
const TokenLoc & getTokenLoc() const
Definition: discardparser.cpp:90
virtual void reset()
Reset parser to clean state.
Definition: discardparser.cpp:83
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59