1 #ifndef COMPILER_DECLARATIONPARSER_H_INCLUDED
2 #define COMPILER_DECLARATIONPARSER_H_INCLUDED
Definition: context.hpp:10
Location of a token in a source file.
Definition: tokenloc.hpp:10
State
Definition: declarationparser.hpp:12
Locals & mLocals
Definition: declarationparser.hpp:17
State mState
Definition: declarationparser.hpp:18
DeclarationParser(ErrorHandler &errorHandler, const Context &context, Locals &locals)
Definition: declarationparser.cpp:10
Definition: declarationparser.hpp:14
Error handling.
Definition: errorhandler.hpp:14
Definition: declarationparser.hpp:10
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: declarationparser.cpp:15
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: declarationparser.cpp:71
void reset()
Reset parser to clean state.
Definition: declarationparser.cpp:79
char mType
Definition: declarationparser.hpp:19
int code
Definition: crashcatcher.cpp:70
Definition: declarationparser.hpp:14
Parser base class.
Definition: parser.hpp:17
virtual bool parseKeyword(int keyword, const TokenLoc &loc, Scanner &scanner)
Definition: declarationparser.cpp:43
Definition: declarationparser.hpp:14
Local variable declarations.
Definition: locals.hpp:12
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59