OpenMD  2.5
Molecular Dynamics in the Open
MDParser Class Reference

#include <MDParser.hpp>

Inheritance diagram for MDParser:

Public Member Functions

void initializeASTFactory (antlr ::ASTFactory &factory)
 
 MDParser (antlr ::TokenBuffer &tokenBuf)
 
 MDParser (antlr ::TokenStream &lexer)
 
 MDParser (const antlr ::ParserSharedInputState &state)
 
int getNumTokens () const
 
const char * getTokenName (int type) const
 
const char *const * getTokenNames () const
 
void mdfile ()
 
void statement ()
 
void assignment ()
 
void componentblock ()
 
void moleculeblock ()
 
void zconstraintblock ()
 
void restraintblock ()
 
void flucqblock ()
 
void rnemdblock ()
 
void minimizerblock ()
 
void constant ()
 
void moleculestatement ()
 
void atomblock ()
 
void bondblock ()
 
void bendblock ()
 
void torsionblock ()
 
void inversionblock ()
 
void rigidbodyblock ()
 
void cutoffgroupblock ()
 
void fragmentblock ()
 
void constraintblock ()
 
void atomstatement ()
 
void doubleNumberTuple ()
 
void bondstatement ()
 
void inttuple ()
 
void bendstatement ()
 
void torsionstatement ()
 
void inversionstatement ()
 
void rigidbodystatement ()
 
void cutoffgroupstatement ()
 
void fragmentstatement ()
 
void constraintstatement ()
 
antlr ::RefAST getAST ()
 

Protected Member Functions

 MDParser (antlr ::TokenBuffer &tokenBuf, int k)
 
 MDParser (antlr ::TokenStream &lexer, int k)
 
void intConst ()
 
void floatConst ()
 
void vectorConst ()
 
void doubleNumber ()
 

Protected Attributes

antlr ::RefAST returnAST
 

Static Private Attributes

static const char * tokenNames []
 
static const int NUM_TOKENS = 78
 
static const unsigned long _tokenSet_0_data_ [] = { 58720496UL, 8192UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_0
 
static const unsigned long _tokenSet_1_data_ [] = { 2UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_1
 
static const unsigned long _tokenSet_2_data_ [] = { 58720498UL, 8192UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_2
 
static const unsigned long _tokenSet_3_data_ [] = { 4294901746UL, 274431UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_3
 
static const unsigned long _tokenSet_4_data_ [] = { 196352UL, 8192UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_4
 
static const unsigned long _tokenSet_5_data_ [] = { 0UL, 32768UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_5
 
static const unsigned long _tokenSet_6_data_ [] = { 0UL, 13664256UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_6
 
static const unsigned long _tokenSet_7_data_ [] = { 0UL, 12615680UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_7
 
static const unsigned long _tokenSet_8_data_ [] = { 196352UL, 270336UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_8
 
static const unsigned long _tokenSet_9_data_ [] = { 6291456UL, 10240UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_9
 
static const unsigned long _tokenSet_10_data_ [] = { 4228120576UL, 8192UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_10
 
static const unsigned long _tokenSet_11_data_ [] = { 2013528064UL, 8199UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_11
 
static const unsigned long _tokenSet_12_data_ [] = { 2013528064UL, 8312UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_12
 
static const unsigned long _tokenSet_13_data_ [] = { 135790592UL, 10112UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_13
 
static const unsigned long _tokenSet_14_data_ [] = { 6291456UL, 272384UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_14
 
static const unsigned long _tokenSet_15_data_ [] = { 0UL, 4194304UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_15
 
static const unsigned long _tokenSet_16_data_ [] = { 4228120576UL, 270336UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_16
 
static const unsigned long _tokenSet_17_data_ [] = { 2013528064UL, 270343UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_17
 
static const unsigned long _tokenSet_18_data_ [] = { 2013528064UL, 270456UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_18
 
static const unsigned long _tokenSet_19_data_ [] = { 135790592UL, 272256UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_19
 
static const unsigned long _tokenSet_20_data_ [] = { 262144UL, 270336UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_20
 
static const unsigned long _tokenSet_21_data_ [] = { 0UL, 270336UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_21
 
static const unsigned long _tokenSet_22_data_ [] = { 0UL, 12582912UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_22
 

Detailed Description

Definition at line 19 of file MDParser.hpp.

Constructor & Destructor Documentation

◆ MDParser() [1/5]

MDParser::MDParser ( antlr ::TokenBuffer &  tokenBuf,
int  k 
)
protected

Definition at line 8 of file MDParser.cpp.

◆ MDParser() [2/5]

MDParser::MDParser ( antlr ::TokenBuffer &  tokenBuf)

Definition at line 13 of file MDParser.cpp.

◆ MDParser() [3/5]

MDParser::MDParser ( antlr ::TokenStream &  lexer,
int  k 
)
protected

Definition at line 18 of file MDParser.cpp.

◆ MDParser() [4/5]

MDParser::MDParser ( antlr ::TokenStream &  lexer)

Definition at line 23 of file MDParser.cpp.

◆ MDParser() [5/5]

MDParser::MDParser ( const antlr ::ParserSharedInputState &  state)

Definition at line 28 of file MDParser.cpp.

Member Function Documentation

◆ assignment()

◆ atomblock()

void MDParser::atomblock ( )

◆ atomstatement()

void MDParser::atomstatement ( )

◆ bendblock()

void MDParser::bendblock ( )

◆ bendstatement()

◆ bondblock()

void MDParser::bondblock ( )

◆ bondstatement()

◆ componentblock()

void MDParser::componentblock ( )

Definition at line 163 of file MDParser.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, assignment(), COMPONENT, ENDBLOCK, ID, LCURLY, antlr::nullAST, RCURLY, and returnAST.

Referenced by statement().

◆ constant()

void MDParser::constant ( )

◆ constraintblock()

void MDParser::constraintblock ( )

◆ constraintstatement()

void MDParser::constraintstatement ( )

◆ cutoffgroupblock()

void MDParser::cutoffgroupblock ( )

◆ cutoffgroupstatement()

void MDParser::cutoffgroupstatement ( )

◆ doubleNumber()

void MDParser::doubleNumber ( )
protected

◆ doubleNumberTuple()

void MDParser::doubleNumberTuple ( )

◆ floatConst()

void MDParser::floatConst ( )
protected

◆ flucqblock()

void MDParser::flucqblock ( )

Definition at line 323 of file MDParser.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, assignment(), ENDBLOCK, FLUCQ, ID, LCURLY, antlr::nullAST, RCURLY, and returnAST.

Referenced by statement().

◆ fragmentblock()

void MDParser::fragmentblock ( )

◆ fragmentstatement()

void MDParser::fragmentstatement ( )

Definition at line 1936 of file MDParser.cpp.

References _tokenSet_21, ANTLR_USE_NAMESPACE, assignment(), antlr::nullAST, and returnAST.

Referenced by fragmentblock().

◆ getAST()

antlr ::RefAST MDParser::getAST ( )
inline

Definition at line 84 of file MDParser.hpp.

Referenced by OpenMD::SimCreator::parseFile().

◆ getNumTokens()

int MDParser::getNumTokens ( ) const
inline

Definition at line 34 of file MDParser.hpp.

References NUM_TOKENS.

◆ getTokenName()

const char* MDParser::getTokenName ( int  type) const
inline

Definition at line 38 of file MDParser.hpp.

References tokenNames.

◆ getTokenNames()

const char* const* MDParser::getTokenNames ( ) const
inline

Definition at line 43 of file MDParser.hpp.

References tokenNames.

◆ initializeASTFactory()

◆ intConst()

◆ inttuple()

◆ inversionblock()

void MDParser::inversionblock ( )

◆ inversionstatement()

◆ mdfile()

void MDParser::mdfile ( )

◆ minimizerblock()

void MDParser::minimizerblock ( )

Definition at line 403 of file MDParser.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, assignment(), ENDBLOCK, ID, LCURLY, MINIMIZER, antlr::nullAST, RCURLY, and returnAST.

Referenced by statement().

◆ moleculeblock()

void MDParser::moleculeblock ( )

◆ moleculestatement()

◆ restraintblock()

void MDParser::restraintblock ( )

Definition at line 283 of file MDParser.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, assignment(), ENDBLOCK, ID, LCURLY, antlr::nullAST, RCURLY, RESTRAINT, and returnAST.

Referenced by statement().

◆ rigidbodyblock()

void MDParser::rigidbodyblock ( )

◆ rigidbodystatement()

void MDParser::rigidbodystatement ( )

◆ rnemdblock()

void MDParser::rnemdblock ( )

Definition at line 363 of file MDParser.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, assignment(), ENDBLOCK, ID, LCURLY, antlr::nullAST, RCURLY, returnAST, and RNEMD.

Referenced by statement().

◆ statement()

◆ torsionblock()

void MDParser::torsionblock ( )

◆ torsionstatement()

◆ vectorConst()

void MDParser::vectorConst ( )
protected

Definition at line 580 of file MDParser.cpp.

References _tokenSet_5, ANTLR_USE_NAMESPACE, doubleNumberTuple(), LPAREN, antlr::nullAST, returnAST, and RPAREN.

Referenced by constant().

◆ zconstraintblock()

void MDParser::zconstraintblock ( )

Member Data Documentation

◆ _tokenSet_0

const antlr::BitSet MDParser::_tokenSet_0
staticprivate

Definition at line 102 of file MDParser.hpp.

Referenced by initializeASTFactory(), and mdfile().

◆ _tokenSet_0_data_

const unsigned long MDParser::_tokenSet_0_data_ = { 58720496UL, 8192UL, 0UL, 0UL }
staticprivate

Definition at line 101 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_1

const antlr::BitSet MDParser::_tokenSet_1
staticprivate

Definition at line 104 of file MDParser.hpp.

Referenced by initializeASTFactory(), and mdfile().

◆ _tokenSet_10

const antlr::BitSet MDParser::_tokenSet_10
staticprivate

Definition at line 122 of file MDParser.hpp.

Referenced by bondblock(), and initializeASTFactory().

◆ _tokenSet_10_data_

const unsigned long MDParser::_tokenSet_10_data_ = { 4228120576UL, 8192UL, 0UL, 0UL }
staticprivate

Definition at line 121 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_11

const antlr::BitSet MDParser::_tokenSet_11
staticprivate

Definition at line 124 of file MDParser.hpp.

Referenced by bendblock(), and initializeASTFactory().

◆ _tokenSet_11_data_

const unsigned long MDParser::_tokenSet_11_data_ = { 2013528064UL, 8199UL, 0UL, 0UL }
staticprivate

Definition at line 123 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_12

const antlr::BitSet MDParser::_tokenSet_12
staticprivate

Definition at line 126 of file MDParser.hpp.

Referenced by initializeASTFactory(), and torsionblock().

◆ _tokenSet_12_data_

const unsigned long MDParser::_tokenSet_12_data_ = { 2013528064UL, 8312UL, 0UL, 0UL }
staticprivate

Definition at line 125 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_13

const antlr::BitSet MDParser::_tokenSet_13
staticprivate

Definition at line 128 of file MDParser.hpp.

Referenced by initializeASTFactory(), and inversionblock().

◆ _tokenSet_13_data_

const unsigned long MDParser::_tokenSet_13_data_ = { 135790592UL, 10112UL, 0UL, 0UL }
staticprivate

Definition at line 127 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_14

const antlr::BitSet MDParser::_tokenSet_14
staticprivate

Definition at line 130 of file MDParser.hpp.

Referenced by atomstatement(), and initializeASTFactory().

◆ _tokenSet_14_data_

const unsigned long MDParser::_tokenSet_14_data_ = { 6291456UL, 272384UL, 0UL, 0UL }
staticprivate

Definition at line 129 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_15

const antlr::BitSet MDParser::_tokenSet_15
staticprivate

Definition at line 132 of file MDParser.hpp.

Referenced by doubleNumberTuple(), initializeASTFactory(), and inttuple().

◆ _tokenSet_15_data_

const unsigned long MDParser::_tokenSet_15_data_ = { 0UL, 4194304UL, 0UL, 0UL }
staticprivate

Definition at line 131 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_16

const antlr::BitSet MDParser::_tokenSet_16
staticprivate

Definition at line 134 of file MDParser.hpp.

Referenced by bondstatement(), and initializeASTFactory().

◆ _tokenSet_16_data_

const unsigned long MDParser::_tokenSet_16_data_ = { 4228120576UL, 270336UL, 0UL, 0UL }
staticprivate

Definition at line 133 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_17

const antlr::BitSet MDParser::_tokenSet_17
staticprivate

Definition at line 136 of file MDParser.hpp.

Referenced by bendstatement(), and initializeASTFactory().

◆ _tokenSet_17_data_

const unsigned long MDParser::_tokenSet_17_data_ = { 2013528064UL, 270343UL, 0UL, 0UL }
staticprivate

Definition at line 135 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_18

const antlr::BitSet MDParser::_tokenSet_18
staticprivate

Definition at line 138 of file MDParser.hpp.

Referenced by initializeASTFactory(), and torsionstatement().

◆ _tokenSet_18_data_

const unsigned long MDParser::_tokenSet_18_data_ = { 2013528064UL, 270456UL, 0UL, 0UL }
staticprivate

Definition at line 137 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_19

const antlr::BitSet MDParser::_tokenSet_19
staticprivate

Definition at line 140 of file MDParser.hpp.

Referenced by initializeASTFactory(), and inversionstatement().

◆ _tokenSet_19_data_

const unsigned long MDParser::_tokenSet_19_data_ = { 135790592UL, 272256UL, 0UL, 0UL }
staticprivate

Definition at line 139 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_1_data_

const unsigned long MDParser::_tokenSet_1_data_ = { 2UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 103 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_2

◆ _tokenSet_20

const antlr::BitSet MDParser::_tokenSet_20
staticprivate

◆ _tokenSet_20_data_

const unsigned long MDParser::_tokenSet_20_data_ = { 262144UL, 270336UL, 0UL, 0UL }
staticprivate

Definition at line 141 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_21

const antlr::BitSet MDParser::_tokenSet_21
staticprivate

Definition at line 144 of file MDParser.hpp.

Referenced by fragmentstatement(), and initializeASTFactory().

◆ _tokenSet_21_data_

const unsigned long MDParser::_tokenSet_21_data_ = { 0UL, 270336UL, 0UL, 0UL }
staticprivate

Definition at line 143 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_22

const antlr::BitSet MDParser::_tokenSet_22
staticprivate

Definition at line 146 of file MDParser.hpp.

Referenced by doubleNumber(), and initializeASTFactory().

◆ _tokenSet_22_data_

const unsigned long MDParser::_tokenSet_22_data_ = { 0UL, 12582912UL, 0UL, 0UL }
staticprivate

Definition at line 145 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_2_data_

const unsigned long MDParser::_tokenSet_2_data_ = { 58720498UL, 8192UL, 0UL, 0UL }
staticprivate

Definition at line 105 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_3

const antlr::BitSet MDParser::_tokenSet_3
staticprivate

Definition at line 108 of file MDParser.hpp.

Referenced by assignment(), and initializeASTFactory().

◆ _tokenSet_3_data_

const unsigned long MDParser::_tokenSet_3_data_ = { 4294901746UL, 274431UL, 0UL, 0UL }
staticprivate

Definition at line 107 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_4

const antlr::BitSet MDParser::_tokenSet_4
staticprivate

Definition at line 110 of file MDParser.hpp.

Referenced by initializeASTFactory(), and moleculeblock().

◆ _tokenSet_4_data_

const unsigned long MDParser::_tokenSet_4_data_ = { 196352UL, 8192UL, 0UL, 0UL }
staticprivate

Definition at line 109 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_5

const antlr::BitSet MDParser::_tokenSet_5
staticprivate

Definition at line 112 of file MDParser.hpp.

Referenced by constant(), initializeASTFactory(), and vectorConst().

◆ _tokenSet_5_data_

const unsigned long MDParser::_tokenSet_5_data_ = { 0UL, 32768UL, 0UL, 0UL }
staticprivate

Definition at line 111 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_6

const antlr::BitSet MDParser::_tokenSet_6
staticprivate

Definition at line 114 of file MDParser.hpp.

Referenced by initializeASTFactory(), and intConst().

◆ _tokenSet_6_data_

const unsigned long MDParser::_tokenSet_6_data_ = { 0UL, 13664256UL, 0UL, 0UL }
staticprivate

Definition at line 113 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_7

const antlr::BitSet MDParser::_tokenSet_7
staticprivate

Definition at line 116 of file MDParser.hpp.

Referenced by floatConst(), and initializeASTFactory().

◆ _tokenSet_7_data_

const unsigned long MDParser::_tokenSet_7_data_ = { 0UL, 12615680UL, 0UL, 0UL }
staticprivate

Definition at line 115 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_8

◆ _tokenSet_8_data_

const unsigned long MDParser::_tokenSet_8_data_ = { 196352UL, 270336UL, 0UL, 0UL }
staticprivate

Definition at line 117 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ _tokenSet_9

const antlr::BitSet MDParser::_tokenSet_9
staticprivate

Definition at line 120 of file MDParser.hpp.

Referenced by atomblock(), and initializeASTFactory().

◆ _tokenSet_9_data_

const unsigned long MDParser::_tokenSet_9_data_ = { 6291456UL, 10240UL, 0UL, 0UL }
staticprivate

Definition at line 119 of file MDParser.hpp.

Referenced by initializeASTFactory().

◆ NUM_TOKENS

const int MDParser::NUM_TOKENS = 78
staticprivate

Definition at line 94 of file MDParser.hpp.

Referenced by getNumTokens().

◆ returnAST

◆ tokenNames

const char * MDParser::tokenNames
staticprivate

Definition at line 92 of file MDParser.hpp.

Referenced by getTokenName(), getTokenNames(), and initializeASTFactory().


The documentation for this class was generated from the following files: