OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
MDParser.hpp
1#ifndef INC_MDParser_hpp_
2#define INC_MDParser_hpp_
3
4#include <antlr/config.hpp>
5/* $ANTLR 2.7.7 (2006-11-01): "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"
19class CUSTOM_API MDParser : public ANTLR_USE_NAMESPACE(antlr)LLkParser, public MDTokenTypes
20{
21#line 1 "MDParser.g"
22#line 23 "MDParser.hpp"
23public:
24 void initializeASTFactory( ANTLR_USE_NAMESPACE(antlr)ASTFactory& factory );
25protected:
26 MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf, int k);
27public:
28 MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf);
29protected:
30 MDParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer, int k);
31public:
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 fragmentblock();
53 public: void zconstraintblock();
54 public: void restraintblock();
55 public: void flucqblock();
56 public: void rnemdblock();
57 public: void lightblock();
58 public: void minimizerblock();
59 public: void constant();
60 protected: void intConst();
61 protected: void floatConst();
62 protected: void vectorConst();
63 public: void moleculestatement();
64 public: void atomblock();
65 public: void bondblock();
66 public: void bendblock();
67 public: void torsionblock();
68 public: void inversionblock();
69 public: void rigidbodyblock();
70 public: void cutoffgroupblock();
71 public: void constraintblock();
72 public: void sequencestring();
73 public: void atomstatement();
74 public: void doubleNumberTuple();
75 public: void bondstatement();
76 public: void inttuple();
77 public: void bendstatement();
78 public: void torsionstatement();
79 public: void inversionstatement();
80 public: void rigidbodystatement();
81 public: void cutoffgroupstatement();
82 public: void nodesblock();
83 public: void nodesstatement();
84 public: void fragmentstatement();
85 public: void constraintstatement();
86 protected: void doubleNumber();
87public:
88 ANTLR_USE_NAMESPACE(antlr)RefAST getAST()
89 {
90 return returnAST;
91 }
92
93protected:
94 ANTLR_USE_NAMESPACE(antlr)RefAST returnAST;
95private:
96 static const char* tokenNames[];
97#ifndef NO_STATIC_CONSTS
98 static const int NUM_TOKENS = 81;
99#else
100 enum {
101 NUM_TOKENS = 81
102 };
103#endif
104
105 static const unsigned long _tokenSet_0_data_[];
106 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
107 static const unsigned long _tokenSet_1_data_[];
108 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
109 static const unsigned long _tokenSet_2_data_[];
110 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2;
111 static const unsigned long _tokenSet_3_data_[];
112 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3;
113 static const unsigned long _tokenSet_4_data_[];
114 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4;
115 static const unsigned long _tokenSet_5_data_[];
116 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5;
117 static const unsigned long _tokenSet_6_data_[];
118 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6;
119 static const unsigned long _tokenSet_7_data_[];
120 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7;
121 static const unsigned long _tokenSet_8_data_[];
122 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8;
123 static const unsigned long _tokenSet_9_data_[];
124 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9;
125 static const unsigned long _tokenSet_10_data_[];
126 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10;
127 static const unsigned long _tokenSet_11_data_[];
128 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11;
129 static const unsigned long _tokenSet_12_data_[];
130 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12;
131 static const unsigned long _tokenSet_13_data_[];
132 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13;
133 static const unsigned long _tokenSet_14_data_[];
134 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_14;
135 static const unsigned long _tokenSet_15_data_[];
136 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_15;
137 static const unsigned long _tokenSet_16_data_[];
138 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_16;
139 static const unsigned long _tokenSet_17_data_[];
140 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_17;
141 static const unsigned long _tokenSet_18_data_[];
142 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_18;
143 static const unsigned long _tokenSet_19_data_[];
144 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_19;
145 static const unsigned long _tokenSet_20_data_[];
146 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_20;
147 static const unsigned long _tokenSet_21_data_[];
148 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_21;
149 static const unsigned long _tokenSet_22_data_[];
150 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_22;
151 static const unsigned long _tokenSet_23_data_[];
152 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_23;
153 static const unsigned long _tokenSet_24_data_[];
154 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_24;
155};
156
157#endif /*INC_MDParser_hpp_*/