KDevelop API Documentation

PascalLexer Class Reference

#include <PascalLexer.hpp>

Inheritance diagram for PascalLexer:

CharScanner PascalTokenTypes List of all members.

Public Member Functions

void resetErrors ()
unsigned int numberOfErrors () const
void setProblemReporter (ProblemReporter *r)
virtual void reportError (const antlr::RecognitionException &ex)
virtual void reportError (const std::string &errorMessage)
virtual void reportWarning (const std::string &warnMessage)
bool getCaseSensitiveLiterals () const
 PascalLexer (std::istream &in)
 PascalLexer (antlr::InputBuffer &ib)
 PascalLexer (const antlr::LexerSharedInputState &state)
antlr::RefToken nextToken ()
void mPLUS (bool _createToken)
void mMINUS (bool _createToken)
void mSTAR (bool _createToken)
void mSLASH (bool _createToken)
void mASSIGN (bool _createToken)
void mCOMMA (bool _createToken)
void mSEMI (bool _createToken)
void mCOLON (bool _createToken)
void mEQUAL (bool _createToken)
void mNOT_EQUAL (bool _createToken)
void mLTH (bool _createToken)
void mLE (bool _createToken)
void mGE (bool _createToken)
void mGT (bool _createToken)
void mLPAREN (bool _createToken)
void mRPAREN (bool _createToken)
void mLBRACK (bool _createToken)
void mLBRACK2 (bool _createToken)
void mRBRACK (bool _createToken)
void mRBRACK2 (bool _createToken)
void mPOINTER (bool _createToken)
void mAT (bool _createToken)
void mDOT (bool _createToken)
void mLCURLY (bool _createToken)
void mRCURLY (bool _createToken)
void mPLUSEQ (bool _createToken)
void mMINUSEQ (bool _createToken)
void mSTAREQ (bool _createToken)
void mSLASHQE (bool _createToken)
void mWS (bool _createToken)
void mCOMMENT_1 (bool _createToken)
void mCOMMENT_2 (bool _createToken)
void mCOMMENT_3 (bool _createToken)
void mIDENT (bool _createToken)
void mSTRING_LITERAL (bool _createToken)
void mNUM_INT (bool _createToken)
 a numeric literal.


Protected Member Functions

void mEXPONENT (bool _createToken)

Private Member Functions

void initLiterals ()

Private Attributes

ProblemReporterm_problemReporter
unsigned int m_numberOfErrors

Static Private Attributes

const unsigned long _tokenSet_0_data_ [] = { 4294958079UL, 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_0
const unsigned long _tokenSet_1_data_ [] = { 4294958079UL, 4294967295UL, 4294967295UL, 3758096383UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_1
const unsigned long _tokenSet_2_data_ [] = { 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_2
const unsigned long _tokenSet_3_data_ [] = { 4294967295UL, 4294967167UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_3

Constructor & Destructor Documentation

PascalLexer::PascalLexer std::istream &  in  ) 
 

Definition at line 13 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, initLiterals(), and PascalLexer().

Referenced by PascalLexer().

PascalLexer::PascalLexer antlr::InputBuffer &  ib  ) 
 

Definition at line 19 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, initLiterals(), and PascalLexer().

PascalLexer::PascalLexer const antlr::LexerSharedInputState state  ) 
 

Definition at line 25 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, initLiterals(), LexerSharedInputState, and PascalLexer().


Member Function Documentation

bool PascalLexer::getCaseSensitiveLiterals  )  const [inline]
 

Definition at line 63 of file PascalLexer.hpp.

void PascalLexer::initLiterals  )  [private]
 

Definition at line 31 of file PascalLexer.cpp.

Referenced by PascalLexer().

void PascalLexer::mASSIGN bool  _createToken  ) 
 

Definition at line 455 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mASSIGN(), nullToken, and text().

Referenced by mASSIGN().

void PascalLexer::mAT bool  _createToken  ) 
 

Definition at line 693 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mAT(), nullToken, and text().

Referenced by mAT().

void PascalLexer::mCOLON bool  _createToken  ) 
 

Definition at line 497 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mCOLON(), nullToken, and text().

Referenced by mCOLON().

void PascalLexer::mCOMMA bool  _createToken  ) 
 

Definition at line 469 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mCOMMA(), nullToken, and text().

Referenced by mCOMMA().

void PascalLexer::mCOMMENT_1 bool  _createToken  ) 
 

Definition at line 878 of file PascalLexer.cpp.

References _tokenSet_0, ANTLR_USE_NAMESPACE, mCOMMENT_1(), nullToken, and text().

Referenced by mCOMMENT_1().

void PascalLexer::mCOMMENT_2 bool  _createToken  ) 
 

Definition at line 932 of file PascalLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mCOMMENT_2(), nullToken, and text().

Referenced by mCOMMENT_2().

void PascalLexer::mCOMMENT_3 bool  _createToken  ) 
 

Definition at line 983 of file PascalLexer.cpp.

References _tokenSet_2, ANTLR_USE_NAMESPACE, mCOMMENT_3(), nullToken, and text().

Referenced by mCOMMENT_3().

void PascalLexer::mDOT bool  _createToken  ) 
 

Definition at line 707 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mDOT(), nullToken, and text().

Referenced by mDOT().

void PascalLexer::mEQUAL bool  _createToken  ) 
 

Definition at line 511 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mEQUAL(), nullToken, and text().

Referenced by mEQUAL().

void PascalLexer::mEXPONENT bool  _createToken  )  [protected]
 

Definition at line 1199 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mEXPONENT(), nullToken, and text().

Referenced by mEXPONENT(), and mNUM_INT().

void PascalLexer::mGE bool  _createToken  ) 
 

Definition at line 567 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mGE(), nullToken, and text().

Referenced by mGE().

void PascalLexer::mGT bool  _createToken  ) 
 

Definition at line 581 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mGT(), nullToken, and text().

Referenced by mGT().

void PascalLexer::mIDENT bool  _createToken  ) 
 

Definition at line 1013 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mIDENT(), nullToken, and text().

Referenced by mIDENT().

void PascalLexer::mLBRACK bool  _createToken  ) 
 

Definition at line 623 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLBRACK(), nullToken, and text().

Referenced by mLBRACK().

void PascalLexer::mLBRACK2 bool  _createToken  ) 
 

Definition at line 637 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLBRACK2(), nullToken, and text().

Referenced by mLBRACK2().

void PascalLexer::mLCURLY bool  _createToken  ) 
 

Definition at line 732 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLCURLY(), nullToken, and text().

Referenced by mLCURLY().

void PascalLexer::mLE bool  _createToken  ) 
 

Definition at line 553 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLE(), nullToken, and text().

Referenced by mLE().

void PascalLexer::mLPAREN bool  _createToken  ) 
 

Definition at line 595 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLPAREN(), nullToken, and text().

Referenced by mLPAREN().

void PascalLexer::mLTH bool  _createToken  ) 
 

Definition at line 539 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mLTH(), nullToken, and text().

Referenced by mLTH().

void PascalLexer::mMINUS bool  _createToken  ) 
 

Definition at line 413 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mMINUS(), nullToken, and text().

Referenced by mMINUS().

void PascalLexer::mMINUSEQ bool  _createToken  ) 
 

Definition at line 774 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mMINUSEQ(), nullToken, and text().

Referenced by mMINUSEQ().

void PascalLexer::mNOT_EQUAL bool  _createToken  ) 
 

Definition at line 525 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mNOT_EQUAL(), nullToken, and text().

Referenced by mNOT_EQUAL().

void PascalLexer::mNUM_INT bool  _createToken  ) 
 

a numeric literal.

Form is (from Wirth) digits digits . digits digits . digits exponent digits exponent

Definition at line 1128 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mEXPONENT(), mNUM_INT(), nullToken, and text().

Referenced by mNUM_INT().

void PascalLexer::mPLUS bool  _createToken  ) 
 

Definition at line 399 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mPLUS(), nullToken, and text().

Referenced by mPLUS().

void PascalLexer::mPLUSEQ bool  _createToken  ) 
 

Definition at line 760 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mPLUSEQ(), nullToken, and text().

Referenced by mPLUSEQ().

void PascalLexer::mPOINTER bool  _createToken  ) 
 

Definition at line 679 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mPOINTER(), nullToken, and text().

Referenced by mPOINTER().

void PascalLexer::mRBRACK bool  _createToken  ) 
 

Definition at line 651 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mRBRACK(), nullToken, and text().

Referenced by mRBRACK().

void PascalLexer::mRBRACK2 bool  _createToken  ) 
 

Definition at line 665 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mRBRACK2(), nullToken, and text().

Referenced by mRBRACK2().

void PascalLexer::mRCURLY bool  _createToken  ) 
 

Definition at line 746 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mRCURLY(), nullToken, and text().

Referenced by mRCURLY().

void PascalLexer::mRPAREN bool  _createToken  ) 
 

Definition at line 609 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mRPAREN(), nullToken, and text().

Referenced by mRPAREN().

void PascalLexer::mSEMI bool  _createToken  ) 
 

Definition at line 483 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mSEMI(), nullToken, and text().

Referenced by mSEMI().

void PascalLexer::mSLASH bool  _createToken  ) 
 

Definition at line 441 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mSLASH(), nullToken, and text().

Referenced by mSLASH().

void PascalLexer::mSLASHQE bool  _createToken  ) 
 

Definition at line 802 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mSLASHQE(), nullToken, and text().

Referenced by mSLASHQE().

void PascalLexer::mSTAR bool  _createToken  ) 
 

Definition at line 427 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mSTAR(), nullToken, and text().

Referenced by mSTAR().

void PascalLexer::mSTAREQ bool  _createToken  ) 
 

Definition at line 788 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mSTAREQ(), nullToken, and text().

Referenced by mSTAREQ().

void PascalLexer::mSTRING_LITERAL bool  _createToken  ) 
 

Definition at line 1090 of file PascalLexer.cpp.

References _tokenSet_3, ANTLR_USE_NAMESPACE, mSTRING_LITERAL(), nullToken, and text().

Referenced by mSTRING_LITERAL().

void PascalLexer::mWS bool  _createToken  ) 
 

Definition at line 816 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, mWS(), nullToken, and text().

Referenced by mWS().

antlr::RefToken PascalLexer::nextToken  ) 
 

Definition at line 152 of file PascalLexer.cpp.

References ANTLR_USE_NAMESPACE, and RefToken.

unsigned int PascalLexer::numberOfErrors  )  const [inline]
 

Definition at line 36 of file PascalLexer.hpp.

References m_numberOfErrors.

Referenced by PascalSupportPart::parse().

virtual void PascalLexer::reportError const std::string &  errorMessage  )  [inline, virtual]
 

Definition at line 47 of file PascalLexer.hpp.

References m_numberOfErrors, m_problemReporter, and ProblemReporter::reportError().

virtual void PascalLexer::reportError const antlr::RecognitionException &  ex  )  [inline, virtual]
 

Definition at line 39 of file PascalLexer.hpp.

References m_numberOfErrors, m_problemReporter, ProblemReporter::reportError(), and reportError().

Referenced by reportError().

virtual void PascalLexer::reportWarning const std::string &  warnMessage  )  [inline, virtual]
 

Definition at line 54 of file PascalLexer.hpp.

References m_problemReporter, ProblemReporter::reportWarning(), and reportWarning().

Referenced by reportWarning().

void PascalLexer::resetErrors  )  [inline]
 

Definition at line 35 of file PascalLexer.hpp.

References m_numberOfErrors.

Referenced by PascalSupportPart::parse().

void PascalLexer::setProblemReporter ProblemReporter r  )  [inline]
 

Definition at line 37 of file PascalLexer.hpp.

References m_problemReporter, and setProblemReporter().

Referenced by PascalSupportPart::parse(), and setProblemReporter().


Member Data Documentation

const antlr::BitSet PascalLexer::_tokenSet_0 [static, private]
 

Referenced by mCOMMENT_1().

const unsigned long PascalLexer::_tokenSet_0_data_ = { 4294958079UL, 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1261 of file PascalLexer.cpp.

const antlr::BitSet PascalLexer::_tokenSet_1 [static, private]
 

Referenced by mCOMMENT_2().

const unsigned long PascalLexer::_tokenSet_1_data_ = { 4294958079UL, 4294967295UL, 4294967295UL, 3758096383UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1285 of file PascalLexer.cpp.

const antlr::BitSet PascalLexer::_tokenSet_2 [static, private]
 

Referenced by mCOMMENT_3().

const unsigned long PascalLexer::_tokenSet_2_data_ = { 4294966271UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1309 of file PascalLexer.cpp.

const antlr::BitSet PascalLexer::_tokenSet_3 [static, private]
 

Referenced by mSTRING_LITERAL().

const unsigned long PascalLexer::_tokenSet_3_data_ = { 4294967295UL, 4294967167UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1333 of file PascalLexer.cpp.

unsigned int PascalLexer::m_numberOfErrors [private]
 

Definition at line 32 of file PascalLexer.hpp.

Referenced by numberOfErrors(), reportError(), and resetErrors().

ProblemReporter* PascalLexer::m_problemReporter [private]
 

Definition at line 31 of file PascalLexer.hpp.

Referenced by reportError(), reportWarning(), and setProblemReporter().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:27 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003