| 3 |
|
|
| 4 |
|
#include <antlr/config.hpp> |
| 5 |
|
#include "MDTreeParserTokenTypes.hpp" |
| 6 |
< |
/* $ANTLR 2.7.7 (20120725): "MDTreeParser.g" -> "MDTreeParser.hpp"$ */ |
| 6 |
> |
/* $ANTLR 2.7.7 (20141024): "MDTreeParser.g" -> "MDTreeParser.hpp"$ */ |
| 7 |
|
#include <antlr/TreeParser.hpp> |
| 8 |
|
|
| 9 |
|
#line 2 "MDTreeParser.g" |
| 19 |
|
{ |
| 20 |
|
#line 21 "MDTreeParser.g" |
| 21 |
|
|
| 22 |
< |
public: |
| 22 |
> |
public: |
| 23 |
|
Globals* walkTree(ANTLR_USE_NAMESPACE(antlr)RefAST tree) |
| 24 |
|
{ |
| 25 |
< |
currConf = new Globals; |
| 26 |
< |
blockStack.push(currConf); |
| 27 |
< |
mdfile(tree); |
| 28 |
< |
return currConf; |
| 25 |
> |
currConf = new Globals; |
| 26 |
> |
blockStack.push(currConf); |
| 27 |
> |
mdfile(tree); |
| 28 |
> |
return currConf; |
| 29 |
|
} |
| 30 |
< |
private: |
| 30 |
> |
private: |
| 31 |
|
Globals* currConf; |
| 32 |
|
stack<DataHolder*> blockStack; |
| 33 |
|
#line 22 "MDTreeParser.hpp" |
| 62 |
|
); |
| 63 |
|
protected: int intConst(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 64 |
|
protected: RealType floatConst(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 65 |
< |
protected: RealType doubleNumber(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 65 |
> |
public: vector<RealType> doubleNumberTuple(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 66 |
|
public: void moleculestatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 67 |
|
public: void atomblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 68 |
|
public: void bondblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 72 |
|
public: void rigidbodyblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 73 |
|
public: void cutoffgroupblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 74 |
|
public: void fragmentblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 75 |
+ |
public: void constraintblock(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 76 |
|
public: void atomstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 77 |
< |
public: vector<RealType> doubleNumberTuple(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 77 |
> |
protected: RealType doubleNumber(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 78 |
|
public: void bondstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 79 |
|
public: vector<int> inttuple(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 80 |
|
public: void bendstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 83 |
|
public: void rigidbodystatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 84 |
|
public: void cutoffgroupstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 85 |
|
public: void fragmentstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 86 |
+ |
public: void constraintstatement(ANTLR_USE_NAMESPACE(antlr)RefAST _t); |
| 87 |
|
public: |
| 88 |
|
ANTLR_USE_NAMESPACE(antlr)RefAST getAST() |
| 89 |
|
{ |
| 96 |
|
private: |
| 97 |
|
static const char* tokenNames[]; |
| 98 |
|
#ifndef NO_STATIC_CONSTS |
| 99 |
< |
static const int NUM_TOKENS = 57; |
| 99 |
> |
static const int NUM_TOKENS = 78; |
| 100 |
|
#else |
| 101 |
|
enum { |
| 102 |
< |
NUM_TOKENS = 57 |
| 102 |
> |
NUM_TOKENS = 78 |
| 103 |
|
}; |
| 104 |
|
#endif |
| 105 |
|
|
| 107 |
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; |
| 108 |
|
static const unsigned long _tokenSet_1_data_[]; |
| 109 |
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; |
| 110 |
+ |
static const unsigned long _tokenSet_2_data_[]; |
| 111 |
+ |
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; |
| 112 |
+ |
static const unsigned long _tokenSet_3_data_[]; |
| 113 |
+ |
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; |
| 114 |
+ |
static const unsigned long _tokenSet_4_data_[]; |
| 115 |
+ |
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; |
| 116 |
+ |
static const unsigned long _tokenSet_5_data_[]; |
| 117 |
+ |
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; |
| 118 |
+ |
static const unsigned long _tokenSet_6_data_[]; |
| 119 |
+ |
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; |
| 120 |
|
}; |
| 121 |
|
|
| 122 |
|
#endif /*INC_MDTreeParser_hpp_*/ |