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 (20191228): "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 zconstraintblock();
53 public: void restraintblock();
54 public: void flucqblock();
55 public: void rnemdblock();
56 public: void minimizerblock();
57 public: void constant();
58 protected: void intConst();
59 protected: void floatConst();
60 protected: void vectorConst();
61 public: void moleculestatement();
62 public: void atomblock();
63 public: void bondblock();
64 public: void bendblock();
65 public: void torsionblock();
66 public: void inversionblock();
67 public: void rigidbodyblock();
68 public: void cutoffgroupblock();
69 public: void fragmentblock();
70 public: void constraintblock();
71 public: void atomstatement();
72 public: void doubleNumberTuple();
73 public: void bondstatement();
74 public: void inttuple();
75 public: void bendstatement();
76 public: void torsionstatement();
77 public: void inversionstatement();
78 public: void rigidbodystatement();
79 public: void cutoffgroupstatement();
80 public: void fragmentstatement();
81 public: void constraintstatement();
82 protected: void doubleNumber();
83public:
84 ANTLR_USE_NAMESPACE(antlr)RefAST getAST()
85 {
86 return returnAST;
87 }
88
89protected:
90 ANTLR_USE_NAMESPACE(antlr)RefAST returnAST;
91private:
92 static const char* tokenNames[];
93#ifndef NO_STATIC_CONSTS
94 static const int NUM_TOKENS = 78;
95#else
96 enum {
97 NUM_TOKENS = 78
98 };
99#endif
100
101 static const unsigned long _tokenSet_0_data_[];
102 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
103 static const unsigned long _tokenSet_1_data_[];
104 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
105 static const unsigned long _tokenSet_2_data_[];
106 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2;
107 static const unsigned long _tokenSet_3_data_[];
108 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3;
109 static const unsigned long _tokenSet_4_data_[];
110 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4;
111 static const unsigned long _tokenSet_5_data_[];
112 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5;
113 static const unsigned long _tokenSet_6_data_[];
114 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6;
115 static const unsigned long _tokenSet_7_data_[];
116 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7;
117 static const unsigned long _tokenSet_8_data_[];
118 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8;
119 static const unsigned long _tokenSet_9_data_[];
120 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9;
121 static const unsigned long _tokenSet_10_data_[];
122 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10;
123 static const unsigned long _tokenSet_11_data_[];
124 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11;
125 static const unsigned long _tokenSet_12_data_[];
126 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12;
127 static const unsigned long _tokenSet_13_data_[];
128 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13;
129 static const unsigned long _tokenSet_14_data_[];
130 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_14;
131 static const unsigned long _tokenSet_15_data_[];
132 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_15;
133 static const unsigned long _tokenSet_16_data_[];
134 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_16;
135 static const unsigned long _tokenSet_17_data_[];
136 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_17;
137 static const unsigned long _tokenSet_18_data_[];
138 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_18;
139 static const unsigned long _tokenSet_19_data_[];
140 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_19;
141 static const unsigned long _tokenSet_20_data_[];
142 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_20;
143 static const unsigned long _tokenSet_21_data_[];
144 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_21;
145 static const unsigned long _tokenSet_22_data_[];
146 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_22;
147};
148
149#endif /*INC_MDParser_hpp_*/