| 1 |
tim |
770 |
#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 44 "MDParser.g" |
| 22 |
|
|
|
| 23 |
|
|
// Suppport C++-style single-line comments? |
| 24 |
|
|
#line 23 "MDParser.hpp" |
| 25 |
|
|
public: |
| 26 |
|
|
void initializeASTFactory( ANTLR_USE_NAMESPACE(antlr)ASTFactory& factory ); |
| 27 |
|
|
protected: |
| 28 |
|
|
MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf, int k); |
| 29 |
|
|
public: |
| 30 |
|
|
MDParser(ANTLR_USE_NAMESPACE(antlr)TokenBuffer& tokenBuf); |
| 31 |
|
|
protected: |
| 32 |
|
|
MDParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer, int k); |
| 33 |
|
|
public: |
| 34 |
|
|
MDParser(ANTLR_USE_NAMESPACE(antlr)TokenStream& lexer); |
| 35 |
|
|
MDParser(const ANTLR_USE_NAMESPACE(antlr)ParserSharedInputState& state); |
| 36 |
|
|
int getNumTokens() const |
| 37 |
|
|
{ |
| 38 |
|
|
return MDParser::NUM_TOKENS; |
| 39 |
|
|
} |
| 40 |
|
|
const char* getTokenName( int type ) const |
| 41 |
|
|
{ |
| 42 |
|
|
if( type > getNumTokens() ) return 0; |
| 43 |
|
|
return MDParser::tokenNames[type]; |
| 44 |
|
|
} |
| 45 |
|
|
const char* const* getTokenNames() const |
| 46 |
|
|
{ |
| 47 |
|
|
return MDParser::tokenNames; |
| 48 |
|
|
} |
| 49 |
|
|
public: void mdfile(); |
| 50 |
|
|
public: void statement(); |
| 51 |
|
|
public: void assignment(); |
| 52 |
|
|
public: void componentblock(); |
| 53 |
|
|
public: void moleculeblock(); |
| 54 |
|
|
public: void zconstraintblock(); |
| 55 |
|
|
public: void constant(); |
| 56 |
|
|
protected: void signedNumber(); |
| 57 |
|
|
public: void moleculestatement(); |
| 58 |
|
|
public: void atomblock(); |
| 59 |
|
|
public: void bondblock(); |
| 60 |
|
|
public: void bendblock(); |
| 61 |
|
|
public: void torsionblock(); |
| 62 |
|
|
public: void rigidbodyblock(); |
| 63 |
|
|
public: void cutoffgroupblock(); |
| 64 |
|
|
public: void fragmentblock(); |
| 65 |
|
|
protected: void intConst(); |
| 66 |
|
|
public: void atomstatement(); |
| 67 |
|
|
public: void signedNumberTuple(); |
| 68 |
|
|
public: void bondstatement(); |
| 69 |
|
|
public: void inttuple(); |
| 70 |
|
|
public: void bendstatement(); |
| 71 |
|
|
public: void torsionstatement(); |
| 72 |
|
|
public: void rigidbodystatement(); |
| 73 |
|
|
public: void cutoffgroupstatement(); |
| 74 |
|
|
public: void fragmentstatement(); |
| 75 |
|
|
protected: void floatConst(); |
| 76 |
|
|
public: |
| 77 |
|
|
ANTLR_USE_NAMESPACE(antlr)RefAST getAST() |
| 78 |
|
|
{ |
| 79 |
|
|
return returnAST; |
| 80 |
|
|
} |
| 81 |
|
|
|
| 82 |
|
|
protected: |
| 83 |
|
|
ANTLR_USE_NAMESPACE(antlr)RefAST returnAST; |
| 84 |
|
|
private: |
| 85 |
|
|
static const char* tokenNames[]; |
| 86 |
|
|
#ifndef NO_STATIC_CONSTS |
| 87 |
|
|
static const int NUM_TOKENS = 56; |
| 88 |
|
|
#else |
| 89 |
|
|
enum { |
| 90 |
|
|
NUM_TOKENS = 56 |
| 91 |
|
|
}; |
| 92 |
|
|
#endif |
| 93 |
|
|
|
| 94 |
|
|
static const unsigned long _tokenSet_0_data_[]; |
| 95 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; |
| 96 |
|
|
static const unsigned long _tokenSet_1_data_[]; |
| 97 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; |
| 98 |
|
|
static const unsigned long _tokenSet_2_data_[]; |
| 99 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; |
| 100 |
|
|
static const unsigned long _tokenSet_3_data_[]; |
| 101 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; |
| 102 |
|
|
static const unsigned long _tokenSet_4_data_[]; |
| 103 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; |
| 104 |
|
|
static const unsigned long _tokenSet_5_data_[]; |
| 105 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; |
| 106 |
|
|
static const unsigned long _tokenSet_6_data_[]; |
| 107 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; |
| 108 |
|
|
static const unsigned long _tokenSet_7_data_[]; |
| 109 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; |
| 110 |
|
|
static const unsigned long _tokenSet_8_data_[]; |
| 111 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8; |
| 112 |
|
|
static const unsigned long _tokenSet_9_data_[]; |
| 113 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9; |
| 114 |
|
|
static const unsigned long _tokenSet_10_data_[]; |
| 115 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10; |
| 116 |
|
|
static const unsigned long _tokenSet_11_data_[]; |
| 117 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_11; |
| 118 |
|
|
static const unsigned long _tokenSet_12_data_[]; |
| 119 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_12; |
| 120 |
|
|
static const unsigned long _tokenSet_13_data_[]; |
| 121 |
|
|
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_13; |
| 122 |
|
|
}; |
| 123 |
|
|
|
| 124 |
|
|
#endif /*INC_MDParser_hpp_*/ |