1 |
tim |
770 |
#ifndef INC_MDParser_hpp_ |
2 |
|
|
#define INC_MDParser_hpp_ |
3 |
|
|
|
4 |
|
|
#include <antlr/config.hpp> |
5 |
gezelter |
1776 |
/* $ANTLR 2.7.7 (20120725): "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 |
cli2 |
1360 |
public: void restraintblock(); |
54 |
gezelter |
1731 |
public: void flucqblock(); |
55 |
|
|
public: void rnemdblock(); |
56 |
gezelter |
1746 |
public: void minimizerblock(); |
57 |
tim |
770 |
public: void constant(); |
58 |
tim |
814 |
protected: void intConst(); |
59 |
|
|
protected: void floatConst(); |
60 |
gezelter |
1776 |
protected: void vectorConst(); |
61 |
tim |
770 |
public: void moleculestatement(); |
62 |
|
|
public: void atomblock(); |
63 |
|
|
public: void bondblock(); |
64 |
|
|
public: void bendblock(); |
65 |
|
|
public: void torsionblock(); |
66 |
gezelter |
1277 |
public: void inversionblock(); |
67 |
tim |
770 |
public: void rigidbodyblock(); |
68 |
|
|
public: void cutoffgroupblock(); |
69 |
|
|
public: void fragmentblock(); |
70 |
|
|
public: void atomstatement(); |
71 |
tim |
814 |
public: void doubleNumberTuple(); |
72 |
tim |
770 |
public: void bondstatement(); |
73 |
|
|
public: void inttuple(); |
74 |
|
|
public: void bendstatement(); |
75 |
|
|
public: void torsionstatement(); |
76 |
cli2 |
1275 |
public: void inversionstatement(); |
77 |
tim |
770 |
public: void rigidbodystatement(); |
78 |
|
|
public: void cutoffgroupstatement(); |
79 |
|
|
public: void fragmentstatement(); |
80 |
tim |
814 |
protected: void doubleNumber(); |
81 |
tim |
770 |
public: |
82 |
|
|
ANTLR_USE_NAMESPACE(antlr)RefAST getAST() |
83 |
|
|
{ |
84 |
|
|
return returnAST; |
85 |
|
|
} |
86 |
|
|
|
87 |
|
|
protected: |
88 |
|
|
ANTLR_USE_NAMESPACE(antlr)RefAST returnAST; |
89 |
|
|
private: |
90 |
|
|
static const char* tokenNames[]; |
91 |
|
|
#ifndef NO_STATIC_CONSTS |
92 |
gezelter |
1746 |
static const int NUM_TOKENS = 57; |
93 |
tim |
770 |
#else |
94 |
|
|
enum { |
95 |
gezelter |
1746 |
NUM_TOKENS = 57 |
96 |
tim |
770 |
}; |
97 |
|
|
#endif |
98 |
|
|
|
99 |
|
|
static const unsigned long _tokenSet_0_data_[]; |
100 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; |
101 |
|
|
static const unsigned long _tokenSet_1_data_[]; |
102 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; |
103 |
|
|
static const unsigned long _tokenSet_2_data_[]; |
104 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; |
105 |
|
|
static const unsigned long _tokenSet_3_data_[]; |
106 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; |
107 |
|
|
static const unsigned long _tokenSet_4_data_[]; |
108 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; |
109 |
|
|
static const unsigned long _tokenSet_5_data_[]; |
110 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; |
111 |
|
|
static const unsigned long _tokenSet_6_data_[]; |
112 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; |
113 |
|
|
static const unsigned long _tokenSet_7_data_[]; |
114 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; |
115 |
|
|
static const unsigned long _tokenSet_8_data_[]; |
116 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8; |
117 |
|
|
static const unsigned long _tokenSet_9_data_[]; |
118 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9; |
119 |
|
|
static const unsigned long _tokenSet_10_data_[]; |
120 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10; |
121 |
|
|
static const unsigned long _tokenSet_11_data_[]; |
122 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11; |
123 |
|
|
static const unsigned long _tokenSet_12_data_[]; |
124 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12; |
125 |
|
|
static const unsigned long _tokenSet_13_data_[]; |
126 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13; |
127 |
tim |
814 |
static const unsigned long _tokenSet_14_data_[]; |
128 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_14; |
129 |
cli2 |
1275 |
static const unsigned long _tokenSet_15_data_[]; |
130 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_15; |
131 |
tim |
770 |
}; |
132 |
|
|
|
133 |
|
|
#endif /*INC_MDParser_hpp_*/ |