OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
skipparser.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_SKIPPARSER_H_INCLUDED
2 #define COMPILER_SKIPPARSER_H_INCLUDED
3 
4 #include "parser.hpp"
5 
6 namespace Compiler
7 {
8  // \brief Skip parser for skipping a line
9  //
10  // This parser is mainly intended for skipping the rest of a faulty line.
11 
12  class SkipParser : public Parser
13  {
14  public:
15 
16  SkipParser (ErrorHandler& errorHandler, const Context& context);
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
42 
virtual bool parseKeyword(int keyword, const TokenLoc &loc, Scanner &scanner)
Definition: skipparser.cpp:27
virtual bool parseFloat(float value, const TokenLoc &loc, Scanner &scanner)
Definition: skipparser.cpp:16
Definition: context.hpp:10
Location of a token in a source file.
Definition: tokenloc.hpp:10
Definition: skipparser.hpp:12
virtual bool parseSpecial(int code, const TokenLoc &loc, Scanner &scanner)
Definition: skipparser.cpp:32
Error handling.
Definition: errorhandler.hpp:14
virtual bool parseInt(int value, const TokenLoc &loc, Scanner &scanner)
Definition: skipparser.cpp:11
int code
Definition: crashcatcher.cpp:70
SkipParser(ErrorHandler &errorHandler, const Context &context)
Definition: skipparser.cpp:7
Parser base class.
Definition: parser.hpp:17
virtual bool parseName(const std::string &name, const TokenLoc &loc, Scanner &scanner)
Definition: skipparser.cpp:21
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59