| 1 | tim | 770 | #ifndef INC_MDParser_hpp_ | 
| 2 |  |  | #define INC_MDParser_hpp_ | 
| 3 |  |  |  | 
| 4 |  |  | #include <antlr/config.hpp> | 
| 5 | cli2 | 1275 | /* $ANTLR 2.7.4: "MDParser.g" -> "MDParser.hpp"$ */ | 
| 6 | tim | 770 | #include <antlr/TokenStream.hpp> | 
| 7 |  |  | #include <antlr/TokenBuffer.hpp> | 
| 8 |  |  | #include "MDTokenTypes.hpp" | 
| 9 |  |  | #include <antlr/LLkParser.hpp> | 
| 10 |  |  |  | 
| 11 |  |  | #line 2 "MDParser.g" | 
| 12 |  |  |  | 
| 13 |  |  |  | 
| 14 |  |  | #include "antlr/CharScanner.hpp" | 
| 15 |  |  | #include "utils/StringUtils.hpp" | 
| 16 |  |  | #include "mdParser/FilenameObserver.hpp" | 
| 17 |  |  |  | 
| 18 |  |  | #line 19 "MDParser.hpp" | 
| 19 |  |  | class CUSTOM_API MDParser : public ANTLR_USE_NAMESPACE(antlr)LLkParser, public MDTokenTypes | 
| 20 |  |  | { | 
| 21 | tim | 810 | #line 1 "MDParser.g" | 
| 22 | tim | 770 | #line 23 "MDParser.hpp" | 
| 23 |  |  | public: | 
| 24 |  |  | void initializeASTFactory( ANTLR_USE_NAMESPACE(antlr)ASTFactory& factory ); | 
| 25 |  |  | protected: | 
| 26 |  |  | MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf, int k); | 
| 27 |  |  | public: | 
| 28 |  |  | MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf); | 
| 29 |  |  | protected: | 
| 30 |  |  | MDParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer, int k); | 
| 31 |  |  | public: | 
| 32 |  |  | MDParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer); | 
| 33 |  |  | MDParser(const ANTLR_USE_NAMESPACE(antlr)ParserSharedInputState& state); | 
| 34 |  |  | int getNumTokens() const | 
| 35 |  |  | { | 
| 36 |  |  | return MDParser::NUM_TOKENS; | 
| 37 |  |  | } | 
| 38 |  |  | const char* getTokenName( int type ) const | 
| 39 |  |  | { | 
| 40 |  |  | if( type > getNumTokens() ) return 0; | 
| 41 |  |  | return MDParser::tokenNames[type]; | 
| 42 |  |  | } | 
| 43 |  |  | const char* const* getTokenNames() const | 
| 44 |  |  | { | 
| 45 |  |  | return MDParser::tokenNames; | 
| 46 |  |  | } | 
| 47 |  |  | public: void mdfile(); | 
| 48 |  |  | public: void statement(); | 
| 49 |  |  | public: void assignment(); | 
| 50 |  |  | public: void componentblock(); | 
| 51 |  |  | public: void moleculeblock(); | 
| 52 |  |  | public: void zconstraintblock(); | 
| 53 |  |  | public: void constant(); | 
| 54 | tim | 814 | protected: void intConst(); | 
| 55 |  |  | protected: void floatConst(); | 
| 56 | tim | 770 | public: void moleculestatement(); | 
| 57 |  |  | public: void atomblock(); | 
| 58 |  |  | public: void bondblock(); | 
| 59 |  |  | public: void bendblock(); | 
| 60 |  |  | public: void torsionblock(); | 
| 61 |  |  | public: void rigidbodyblock(); | 
| 62 |  |  | public: void cutoffgroupblock(); | 
| 63 |  |  | public: void fragmentblock(); | 
| 64 |  |  | public: void atomstatement(); | 
| 65 | tim | 814 | public: void doubleNumberTuple(); | 
| 66 | tim | 770 | public: void bondstatement(); | 
| 67 |  |  | public: void inttuple(); | 
| 68 |  |  | public: void bendstatement(); | 
| 69 |  |  | public: void torsionstatement(); | 
| 70 | cli2 | 1275 | public: void inversionblock(); | 
| 71 |  |  | public: void inversionstatement(); | 
| 72 | tim | 770 | public: void rigidbodystatement(); | 
| 73 |  |  | public: void cutoffgroupstatement(); | 
| 74 |  |  | public: void fragmentstatement(); | 
| 75 | tim | 814 | protected: void doubleNumber(); | 
| 76 | tim | 770 | public: | 
| 77 |  |  | ANTLR_USE_NAMESPACE(antlr)RefAST getAST() | 
| 78 |  |  | { | 
| 79 |  |  | return returnAST; | 
| 80 |  |  | } | 
| 81 |  |  |  | 
| 82 |  |  | protected: | 
| 83 |  |  | ANTLR_USE_NAMESPACE(antlr)RefAST returnAST; | 
| 84 |  |  | private: | 
| 85 |  |  | static const char* tokenNames[]; | 
| 86 |  |  | #ifndef NO_STATIC_CONSTS | 
| 87 | cli2 | 1275 | static const int NUM_TOKENS = 53; | 
| 88 | tim | 770 | #else | 
| 89 |  |  | enum { | 
| 90 | cli2 | 1275 | NUM_TOKENS = 53 | 
| 91 | tim | 770 | }; | 
| 92 |  |  | #endif | 
| 93 |  |  |  | 
| 94 |  |  | static const unsigned long _tokenSet_0_data_[]; | 
| 95 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; | 
| 96 |  |  | static const unsigned long _tokenSet_1_data_[]; | 
| 97 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; | 
| 98 |  |  | static const unsigned long _tokenSet_2_data_[]; | 
| 99 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; | 
| 100 |  |  | static const unsigned long _tokenSet_3_data_[]; | 
| 101 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; | 
| 102 |  |  | static const unsigned long _tokenSet_4_data_[]; | 
| 103 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; | 
| 104 |  |  | static const unsigned long _tokenSet_5_data_[]; | 
| 105 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; | 
| 106 |  |  | static const unsigned long _tokenSet_6_data_[]; | 
| 107 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; | 
| 108 |  |  | static const unsigned long _tokenSet_7_data_[]; | 
| 109 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; | 
| 110 |  |  | static const unsigned long _tokenSet_8_data_[]; | 
| 111 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8; | 
| 112 |  |  | static const unsigned long _tokenSet_9_data_[]; | 
| 113 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9; | 
| 114 |  |  | static const unsigned long _tokenSet_10_data_[]; | 
| 115 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10; | 
| 116 |  |  | static const unsigned long _tokenSet_11_data_[]; | 
| 117 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11; | 
| 118 |  |  | static const unsigned long _tokenSet_12_data_[]; | 
| 119 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12; | 
| 120 |  |  | static const unsigned long _tokenSet_13_data_[]; | 
| 121 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13; | 
| 122 | tim | 814 | static const unsigned long _tokenSet_14_data_[]; | 
| 123 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_14; | 
| 124 | cli2 | 1275 | static const unsigned long _tokenSet_15_data_[]; | 
| 125 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_15; | 
| 126 | tim | 770 | }; | 
| 127 |  |  |  | 
| 128 |  |  | #endif /*INC_MDParser_hpp_*/ |