OpenMW
components/compiler/skipparser.hpp
Go to the documentation of this file.
00001 #ifndef COMPILER_SKIPPARSER_H_INCLUDED
00002 #define COMPILER_SKIPPARSER_H_INCLUDED
00003 
00004 #include "parser.hpp"
00005 
00006 namespace Compiler
00007 {
00008     // \brief Skip parser for skipping a line
00009     //
00010     // This parser is mainly intended for skipping the rest of a faulty line.
00011     
00012     class SkipParser : public Parser
00013     {
00014         public:
00015            
00016             SkipParser (ErrorHandler& errorHandler, Context& context);
00017     
00018             virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner);
00021 
00022             virtual bool parseFloat (float value, const TokenLoc& loc, Scanner& scanner);
00025 
00026             virtual bool parseName (const std::string& name, const TokenLoc& loc,
00027                 Scanner& scanner);
00030 
00031             virtual bool parseKeyword (int keyword, const TokenLoc& loc, Scanner& scanner);
00034 
00035             virtual bool parseSpecial (int code, const TokenLoc& loc, Scanner& scanner);
00038     };
00039 }
00040 
00041 #endif
00042