OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
quickfileparser.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_QUICKFILEPARSER_H_INCLUDED
2 #define COMPILER_QUICKFILEPARSER_H_INCLUDED
3 
4 #include "parser.hpp"
5 #include "declarationparser.hpp"
6 
7 namespace Compiler
8 {
9  class Locals;
10 
12  class QuickFileParser : public Parser
13  {
15 
16  public:
17 
18  QuickFileParser (ErrorHandler& errorHandler, const Context& context, Locals& locals);
19 
20  virtual bool parseName (const std::string& name, const TokenLoc& loc,
21  Scanner& scanner);
24 
25  virtual bool parseKeyword (int keyword, const TokenLoc& loc, Scanner& scanner);
28 
29  virtual bool parseSpecial (int code, const TokenLoc& loc, Scanner& scanner);
32 
33  virtual void parseEOF (Scanner& scanner);
35  };
36 }
37 
38 #endif
39 
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: quickfileparser.cpp:11
Definition: context.hpp:10
Location of a token in a source file.
Definition: tokenloc.hpp:10
File parser variant that ignores everything but variable declarations.
Definition: quickfileparser.hpp:12
QuickFileParser(ErrorHandler &errorHandler, const Context &context, Locals &locals)
Definition: quickfileparser.cpp:6
virtual void parseEOF(Scanner &scanner)
Handle EOF token.
Definition: quickfileparser.cpp:48
Error handling.
Definition: errorhandler.hpp:14
Definition: declarationparser.hpp:10
virtual bool parseKeyword(int keyword, const TokenLoc &loc, Scanner &scanner)
Definition: quickfileparser.cpp:19
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: quickfileparser.cpp:37
int code
Definition: crashcatcher.cpp:70
Parser base class.
Definition: parser.hpp:17
DeclarationParser mDeclarationParser
Definition: quickfileparser.hpp:14
Local variable declarations.
Definition: locals.hpp:12
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59