| 1 | #ifndef INC_MDParser_hpp_ | 
| 2 | #define INC_MDParser_hpp_ | 
| 3 |  | 
| 4 | #include <antlr/config.hpp> | 
| 5 | /* $ANTLR 2.7.5 (20050406): "MDParser.g" -> "MDParser.hpp"$ */ | 
| 6 | #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 | #line 1 "MDParser.g" | 
| 22 | #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 | protected: void signedNumber(); | 
| 55 | public: void moleculestatement(); | 
| 56 | public: void atomblock(); | 
| 57 | public: void bondblock(); | 
| 58 | public: void bendblock(); | 
| 59 | public: void torsionblock(); | 
| 60 | public: void rigidbodyblock(); | 
| 61 | public: void cutoffgroupblock(); | 
| 62 | public: void fragmentblock(); | 
| 63 | protected: void intConst(); | 
| 64 | public: void atomstatement(); | 
| 65 | public: void signedNumberTuple(); | 
| 66 | public: void bondstatement(); | 
| 67 | public: void inttuple(); | 
| 68 | public: void bendstatement(); | 
| 69 | public: void torsionstatement(); | 
| 70 | public: void rigidbodystatement(); | 
| 71 | public: void cutoffgroupstatement(); | 
| 72 | public: void fragmentstatement(); | 
| 73 | protected: void floatConst(); | 
| 74 | public: | 
| 75 | ANTLR_USE_NAMESPACE(antlr)RefAST getAST() | 
| 76 | { | 
| 77 | return returnAST; | 
| 78 | } | 
| 79 |  | 
| 80 | protected: | 
| 81 | ANTLR_USE_NAMESPACE(antlr)RefAST returnAST; | 
| 82 | private: | 
| 83 | static const char* tokenNames[]; | 
| 84 | #ifndef NO_STATIC_CONSTS | 
| 85 | static const int NUM_TOKENS = 54; | 
| 86 | #else | 
| 87 | enum { | 
| 88 | NUM_TOKENS = 54 | 
| 89 | }; | 
| 90 | #endif | 
| 91 |  | 
| 92 | static const unsigned long _tokenSet_0_data_[]; | 
| 93 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; | 
| 94 | static const unsigned long _tokenSet_1_data_[]; | 
| 95 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; | 
| 96 | static const unsigned long _tokenSet_2_data_[]; | 
| 97 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; | 
| 98 | static const unsigned long _tokenSet_3_data_[]; | 
| 99 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; | 
| 100 | static const unsigned long _tokenSet_4_data_[]; | 
| 101 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; | 
| 102 | static const unsigned long _tokenSet_5_data_[]; | 
| 103 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; | 
| 104 | static const unsigned long _tokenSet_6_data_[]; | 
| 105 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; | 
| 106 | static const unsigned long _tokenSet_7_data_[]; | 
| 107 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; | 
| 108 | static const unsigned long _tokenSet_8_data_[]; | 
| 109 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8; | 
| 110 | static const unsigned long _tokenSet_9_data_[]; | 
| 111 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9; | 
| 112 | static const unsigned long _tokenSet_10_data_[]; | 
| 113 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10; | 
| 114 | static const unsigned long _tokenSet_11_data_[]; | 
| 115 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11; | 
| 116 | static const unsigned long _tokenSet_12_data_[]; | 
| 117 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12; | 
| 118 | static const unsigned long _tokenSet_13_data_[]; | 
| 119 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13; | 
| 120 | }; | 
| 121 |  | 
| 122 | #endif /*INC_MDParser_hpp_*/ |