00001 #ifndef INC_CCalcRecConfParser_hpp_
00002 #define INC_CCalcRecConfParser_hpp_
00003
00004 #include <antlr/config.hpp>
00005
00006 #include <antlr/TokenStream.hpp>
00007 #include <antlr/TokenBuffer.hpp>
00008 #include "CCalcRecConfParserTokenTypes.hpp"
00009 #include <antlr/LLkParser.hpp>
00010
00011 #line 1 "CCalcRecConf.g"
00012
00013 #include <string>
00014 #include <vector>
00015 #include <iostream>
00016
00017 #line 18 "CCalcRecConfParser.hpp"
00018 class CUSTOM_API CCalcRecConfParser : public antlr::LLkParser, public CCalcRecConfParserTokenTypes
00019 {
00020 #line 20 "CCalcRecConf.g"
00021
00022 private:
00023 int i; double dtemp; int itemp; std::string stemp; bool btemp;
00024 public:
00025 bool readmodel;
00026 double cc;
00027 double omega;
00028 double sigma;
00029 int shift;
00030 double beforep;
00031 double befores;
00032 std::string recmethod;
00033 #line 22 "CCalcRecConfParser.hpp"
00034 public:
00035 void initializeASTFactory( antlr::ASTFactory& factory );
00036 protected:
00037 CCalcRecConfParser(antlr::TokenBuffer& tokenBuf, int k);
00038 public:
00039 CCalcRecConfParser(antlr::TokenBuffer& tokenBuf);
00040 protected:
00041 CCalcRecConfParser(antlr::TokenStream& lexer, int k);
00042 public:
00043 CCalcRecConfParser(antlr::TokenStream& lexer);
00044 CCalcRecConfParser(const antlr::ParserSharedInputState& state);
00045 int getNumTokens() const
00046 {
00047 return CCalcRecConfParser::NUM_TOKENS;
00048 }
00049 const char* getTokenName( int type ) const
00050 {
00051 if( type > getNumTokens() ) return 0;
00052 return CCalcRecConfParser::tokenNames[type];
00053 }
00054 const char* const* getTokenNames() const
00055 {
00056 return CCalcRecConfParser::tokenNames;
00057 }
00058 public: void configentry();
00059 public: bool boolvalue();
00060 public: double numvalue();
00061 public: std::string stringvalue();
00062 public: void configfile();
00063 public:
00064 antlr::RefAST getAST()
00065 {
00066 return returnAST;
00067 }
00068
00069 protected:
00070 antlr::RefAST returnAST;
00071 private:
00072 static const char* tokenNames[];
00073 #ifndef NO_STATIC_CONSTS
00074 static const int NUM_TOKENS = 25;
00075 #else
00076 enum {
00077 NUM_TOKENS = 25
00078 };
00079 #endif
00080
00081 static const unsigned long _tokenSet_0_data_[];
00082 static const antlr::BitSet _tokenSet_0;
00083 static const unsigned long _tokenSet_1_data_[];
00084 static const antlr::BitSet _tokenSet_1;
00085 static const unsigned long _tokenSet_2_data_[];
00086 static const antlr::BitSet _tokenSet_2;
00087 static const unsigned long _tokenSet_3_data_[];
00088 static const antlr::BitSet _tokenSet_3;
00089 static const unsigned long _tokenSet_4_data_[];
00090 static const antlr::BitSet _tokenSet_4;
00091 static const unsigned long _tokenSet_5_data_[];
00092 static const antlr::BitSet _tokenSet_5;
00093 static const unsigned long _tokenSet_6_data_[];
00094 static const antlr::BitSet _tokenSet_6;
00095 static const unsigned long _tokenSet_7_data_[];
00096 static const antlr::BitSet _tokenSet_7;
00097 };
00098
00099 #endif