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