OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
junkparser.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_JUNKPARSER_H_INCLUDED
2 #define COMPILER_JUNKPARSER_H_INCLUDED
3 
4 #include "parser.hpp"
5 
6 namespace Compiler
7 {
9  class JunkParser : public Parser
10  {
12 
13  public:
14 
15  JunkParser (ErrorHandler& errorHandler, const Context& context,
16  int ignoreKeyword = -1);
17 
18  virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner);
21 
22  virtual bool parseFloat (float value, const TokenLoc& loc, Scanner& scanner);
25 
26  virtual bool parseName (const std::string& name, const TokenLoc& loc,
27  Scanner& scanner);
30 
31  virtual bool parseKeyword (int keyword, const TokenLoc& loc, Scanner& scanner);
34 
35  virtual bool parseSpecial (int code, const TokenLoc& loc, Scanner& scanner);
38  };
39 }
40 
41 #endif
JunkParser(ErrorHandler &errorHandler, const Context &context, int ignoreKeyword=-1)
Definition: junkparser.cpp:5
int mIgnoreKeyword
Definition: junkparser.hpp:11
virtual bool parseKeyword(int keyword, const TokenLoc &loc, Scanner &scanner)
Definition: junkparser.cpp:29
Definition: context.hpp:10
Location of a token in a source file.
Definition: tokenloc.hpp:10
Error handling.
Definition: errorhandler.hpp:14
Parse an optional single junk token.
Definition: junkparser.hpp:9
int code
Definition: crashcatcher.cpp:70
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: junkparser.cpp:39
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: junkparser.cpp:22
Parser base class.
Definition: parser.hpp:17
virtual bool parseFloat(float value, const TokenLoc &loc, Scanner &scanner)
Definition: junkparser.cpp:16
virtual bool parseInt(int value, const TokenLoc &loc, Scanner &scanner)
Definition: junkparser.cpp:10
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59