OpenMD  2.5
Molecular Dynamics in the Open
MDLexer Class Reference

#include <MDLexer.hpp>

Inheritance diagram for MDLexer:

Public Member Functions

void setObserver (FilenameObserver *osv)
 
void initDeferredLineCount ()
 
void deferredNewline ()
 
virtual void newline ()
 
bool getCaseSensitiveLiterals () const
 
 MDLexer (std ::istream &in)
 
 MDLexer (antlr ::InputBuffer &ib)
 
 MDLexer (const antlr ::LexerSharedInputState &state)
 
antlr ::RefToken nextToken ()
 
void mASSIGNEQUAL (bool _createToken)
 
void mCOLON (bool _createToken)
 
void mCOMMA (bool _createToken)
 
void mQUESTIONMARK (bool _createToken)
 
void mSEMICOLON (bool _createToken)
 
void mLPAREN (bool _createToken)
 
void mRPAREN (bool _createToken)
 
void mLBRACKET (bool _createToken)
 
void mRBRACKET (bool _createToken)
 
void mLCURLY (bool _createToken)
 
void mRCURLY (bool _createToken)
 
void mWhitespace (bool _createToken)
 
void mComment (bool _createToken)
 
void mCPPComment (bool _createToken)
 
void mPREPROC_DIRECTIVE (bool _createToken)
 
void mStringLiteral (bool _createToken)
 
void mCharLiteral (bool _createToken)
 
void mID (bool _createToken)
 
void mNUM_INT (bool _createToken)
 

Protected Member Functions

void mEndOfLine (bool _createToken)
 
void mLineDirective (bool _createToken)
 
void mSpace (bool _createToken)
 
void mDecimal (bool _createToken)
 
void mEscape (bool _createToken)
 
void mDigit (bool _createToken)
 
void mVocabulary (bool _createToken)
 
void mHEX_DIGIT (bool _createToken)
 
void mEXPONENT (bool _createToken)
 
void mFLOAT_SUFFIX (bool _createToken)
 

Private Member Functions

void initLiterals ()
 

Private Attributes

int deferredLineCount
 
FilenameObserverobserver
 

Static Private Attributes

static const unsigned long _tokenSet_0_data_ [] = { 4294958079UL, 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_0
 
static const unsigned long _tokenSet_1_data_ [] = { 4294958079UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_1
 
static const unsigned long _tokenSet_2_data_ [] = { 0UL, 2164195460UL, 268435456UL, 22298694UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_2
 
static const unsigned long _tokenSet_3_data_ [] = { 4294958079UL, 4294967291UL, 4026531839UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_3
 
static const unsigned long _tokenSet_4_data_ [] = { 0UL, 67043456UL, 126UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_4
 
static const unsigned long _tokenSet_5_data_ [] = { 4294967295UL, 4294967167UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_5
 
static const unsigned long _tokenSet_6_data_ [] = { 0UL, 0UL, 48UL, 48UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_6
 
static const unsigned long _tokenSet_7_data_ [] = { 0UL, 67053568UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_7
 
static const unsigned long _tokenSet_8_data_ [] = { 0UL, 0UL, 80UL, 80UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_8
 
static const unsigned long _tokenSet_9_data_ [] = { 0UL, 67043328UL, 126UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_9
 
static const unsigned long _tokenSet_10_data_ [] = { 0UL, 16384UL, 112UL, 112UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
 
static const antlr ::BitSet _tokenSet_10
 

Detailed Description

Definition at line 19 of file MDLexer.hpp.

Constructor & Destructor Documentation

◆ MDLexer() [1/3]

MDLexer::MDLexer ( std ::istream &  in)

Definition at line 16 of file MDLexer.cpp.

References initLiterals().

◆ MDLexer() [2/3]

MDLexer::MDLexer ( antlr ::InputBuffer &  ib)

Definition at line 22 of file MDLexer.cpp.

References initLiterals().

◆ MDLexer() [3/3]

MDLexer::MDLexer ( const antlr ::LexerSharedInputState &  state)

Definition at line 28 of file MDLexer.cpp.

References initLiterals().

Member Function Documentation

◆ deferredNewline()

void MDLexer::deferredNewline ( )
inline

Definition at line 31 of file MDLexer.hpp.

Referenced by mComment(), mStringLiteral(), and mWhitespace().

◆ getCaseSensitiveLiterals()

bool MDLexer::getCaseSensitiveLiterals ( ) const
inline

Definition at line 47 of file MDLexer.hpp.

References ANTLR_USE_NAMESPACE.

◆ initDeferredLineCount()

void MDLexer::initDeferredLineCount ( )
inline

Definition at line 30 of file MDLexer.hpp.

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

◆ initLiterals()

void MDLexer::initLiterals ( )
private

Definition at line 34 of file MDLexer.cpp.

Referenced by MDLexer().

◆ mASSIGNEQUAL()

void MDLexer::mASSIGNEQUAL ( bool  _createToken)

Definition at line 296 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, ASSIGNEQUAL, FIX_UNUSED, and antlr::nullToken.

Referenced by nextToken().

◆ mCharLiteral()

void MDLexer::mCharLiteral ( bool  _createToken)

◆ mCOLON()

void MDLexer::mCOLON ( bool  _createToken)

Definition at line 310 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, COLON, FIX_UNUSED, and antlr::nullToken.

Referenced by nextToken().

◆ mCOMMA()

void MDLexer::mCOMMA ( bool  _createToken)

Definition at line 324 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, COMMA, FIX_UNUSED, and antlr::nullToken.

Referenced by nextToken().

◆ mComment()

void MDLexer::mComment ( bool  _createToken)

◆ mCPPComment()

void MDLexer::mCPPComment ( bool  _createToken)

Definition at line 633 of file MDLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, CPPComment, FIX_UNUSED, mEndOfLine(), newline(), and antlr::nullToken.

Referenced by nextToken().

◆ mDecimal()

void MDLexer::mDecimal ( bool  _createToken)
protected

Definition at line 835 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, Decimal, FIX_UNUSED, and antlr::nullToken.

Referenced by mLineDirective().

◆ mDigit()

void MDLexer::mDigit ( bool  _createToken)
protected

Definition at line 1100 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, Digit, FIX_UNUSED, and antlr::nullToken.

Referenced by mEscape().

◆ mEndOfLine()

void MDLexer::mEndOfLine ( bool  _createToken)
protected

Definition at line 605 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, EndOfLine, FIX_UNUSED, and antlr::nullToken.

Referenced by mComment(), mCPPComment(), and mLineDirective().

◆ mEscape()

void MDLexer::mEscape ( bool  _createToken)
protected

Definition at line 945 of file MDLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, Escape, FIX_UNUSED, mDigit(), and antlr::nullToken.

Referenced by mCharLiteral(), and mStringLiteral().

◆ mEXPONENT()

void MDLexer::mEXPONENT ( bool  _createToken)
protected

Definition at line 1784 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, EXPONENT, FIX_UNUSED, and antlr::nullToken.

Referenced by mNUM_INT().

◆ mFLOAT_SUFFIX()

◆ mHEX_DIGIT()

void MDLexer::mHEX_DIGIT ( bool  _createToken)
protected

Definition at line 1305 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, HEX_DIGIT, and antlr::nullToken.

Referenced by mNUM_INT().

◆ mID()

void MDLexer::mID ( bool  _createToken)

Definition at line 1128 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, ID, and antlr::nullToken.

Referenced by nextToken().

◆ mLBRACKET()

void MDLexer::mLBRACKET ( bool  _createToken)

Definition at line 394 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, LBRACKET, and antlr::nullToken.

Referenced by nextToken().

◆ mLCURLY()

void MDLexer::mLCURLY ( bool  _createToken)

Definition at line 422 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, LCURLY, and antlr::nullToken.

Referenced by nextToken().

◆ mLineDirective()

void MDLexer::mLineDirective ( bool  _createToken)
protected

◆ mLPAREN()

void MDLexer::mLPAREN ( bool  _createToken)

Definition at line 366 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, LPAREN, and antlr::nullToken.

Referenced by nextToken().

◆ mNUM_INT()

void MDLexer::mNUM_INT ( bool  _createToken)

◆ mPREPROC_DIRECTIVE()

void MDLexer::mPREPROC_DIRECTIVE ( bool  _createToken)

◆ mQUESTIONMARK()

void MDLexer::mQUESTIONMARK ( bool  _createToken)

Definition at line 338 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and QUESTIONMARK.

Referenced by nextToken().

◆ mRBRACKET()

void MDLexer::mRBRACKET ( bool  _createToken)

Definition at line 408 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and RBRACKET.

Referenced by nextToken().

◆ mRCURLY()

void MDLexer::mRCURLY ( bool  _createToken)

Definition at line 436 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and RCURLY.

Referenced by nextToken().

◆ mRPAREN()

void MDLexer::mRPAREN ( bool  _createToken)

Definition at line 380 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and RPAREN.

Referenced by nextToken().

◆ mSEMICOLON()

void MDLexer::mSEMICOLON ( bool  _createToken)

Definition at line 352 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and SEMICOLON.

Referenced by nextToken().

◆ mSpace()

void MDLexer::mSpace ( bool  _createToken)
protected

Definition at line 799 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and Space.

Referenced by mLineDirective().

◆ mStringLiteral()

void MDLexer::mStringLiteral ( bool  _createToken)

◆ mVocabulary()

void MDLexer::mVocabulary ( bool  _createToken)
protected

Definition at line 1114 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, FIX_UNUSED, antlr::nullToken, and Vocabulary.

◆ mWhitespace()

void MDLexer::mWhitespace ( bool  _createToken)

Definition at line 450 of file MDLexer.cpp.

References ANTLR_USE_NAMESPACE, deferredNewline(), FIX_UNUSED, newline(), antlr::nullToken, and Whitespace.

Referenced by nextToken().

◆ newline()

virtual void MDLexer::newline ( )
inlinevirtual

Definition at line 36 of file MDLexer.hpp.

Referenced by mCPPComment(), mPREPROC_DIRECTIVE(), and mWhitespace().

◆ nextToken()

◆ setObserver()

void MDLexer::setObserver ( FilenameObserver osv)
inline

Definition at line 29 of file MDLexer.hpp.

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

Member Data Documentation

◆ _tokenSet_0

const antlr::BitSet MDLexer::_tokenSet_0
staticprivate

Definition at line 88 of file MDLexer.hpp.

Referenced by mComment(), and mFLOAT_SUFFIX().

◆ _tokenSet_0_data_

const unsigned long MDLexer::_tokenSet_0_data_ = { 4294958079UL, 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 87 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_1

const antlr::BitSet MDLexer::_tokenSet_1
staticprivate

Definition at line 90 of file MDLexer.hpp.

Referenced by mCPPComment(), mEscape(), mFLOAT_SUFFIX(), and mStringLiteral().

◆ _tokenSet_10

const antlr::BitSet MDLexer::_tokenSet_10
staticprivate

Definition at line 108 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mNUM_INT().

◆ _tokenSet_10_data_

const unsigned long MDLexer::_tokenSet_10_data_ = { 0UL, 16384UL, 112UL, 112UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 107 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_1_data_

const unsigned long MDLexer::_tokenSet_1_data_ = { 4294958079UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 89 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_2

const antlr::BitSet MDLexer::_tokenSet_2
staticprivate

Definition at line 92 of file MDLexer.hpp.

Referenced by mCharLiteral(), mFLOAT_SUFFIX(), and mStringLiteral().

◆ _tokenSet_2_data_

const unsigned long MDLexer::_tokenSet_2_data_ = { 0UL, 2164195460UL, 268435456UL, 22298694UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 91 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_3

const antlr::BitSet MDLexer::_tokenSet_3
staticprivate

Definition at line 94 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mStringLiteral().

◆ _tokenSet_3_data_

const unsigned long MDLexer::_tokenSet_3_data_ = { 4294958079UL, 4294967291UL, 4026531839UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 93 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_4

const antlr::BitSet MDLexer::_tokenSet_4
staticprivate

Definition at line 96 of file MDLexer.hpp.

Referenced by mCharLiteral(), and mFLOAT_SUFFIX().

◆ _tokenSet_4_data_

const unsigned long MDLexer::_tokenSet_4_data_ = { 0UL, 67043456UL, 126UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 95 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_5

const antlr::BitSet MDLexer::_tokenSet_5
staticprivate

Definition at line 98 of file MDLexer.hpp.

Referenced by mCharLiteral(), and mFLOAT_SUFFIX().

◆ _tokenSet_5_data_

const unsigned long MDLexer::_tokenSet_5_data_ = { 4294967295UL, 4294967167UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 97 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_6

const antlr::BitSet MDLexer::_tokenSet_6
staticprivate

Definition at line 100 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mNUM_INT().

◆ _tokenSet_6_data_

const unsigned long MDLexer::_tokenSet_6_data_ = { 0UL, 0UL, 48UL, 48UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 99 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_7

const antlr::BitSet MDLexer::_tokenSet_7
staticprivate

Definition at line 102 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mNUM_INT().

◆ _tokenSet_7_data_

const unsigned long MDLexer::_tokenSet_7_data_ = { 0UL, 67053568UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 101 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_8

const antlr::BitSet MDLexer::_tokenSet_8
staticprivate

Definition at line 104 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mNUM_INT().

◆ _tokenSet_8_data_

const unsigned long MDLexer::_tokenSet_8_data_ = { 0UL, 0UL, 80UL, 80UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 103 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ _tokenSet_9

const antlr::BitSet MDLexer::_tokenSet_9
staticprivate

Definition at line 106 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX(), and mNUM_INT().

◆ _tokenSet_9_data_

const unsigned long MDLexer::_tokenSet_9_data_ = { 0UL, 67043328UL, 126UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
staticprivate

Definition at line 105 of file MDLexer.hpp.

Referenced by mFLOAT_SUFFIX().

◆ deferredLineCount

int MDLexer::deferredLineCount
private

Definition at line 25 of file MDLexer.hpp.

Referenced by mLineDirective().

◆ observer

FilenameObserver* MDLexer::observer
private

Definition at line 26 of file MDLexer.hpp.

Referenced by mLineDirective().


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