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