KDevelop API Documentation

AdaLexer Class Reference

#include <AdaLexer.hpp>

Inheritance diagram for AdaLexer:

CharScanner AdaTokenTypes List of all members.

Public Member Functions

void resetErrors ()
unsigned int numberOfErrors () const
void setProblemReporter (ProblemReporter *r)
void reportError (const antlr::RecognitionException &ex)
void reportError (const std::string &errorMessage)
void reportWarning (const std::string &warnMessage)
bool getCaseSensitiveLiterals () const
 AdaLexer (std::istream &in)
 AdaLexer (antlr::InputBuffer &ib)
 AdaLexer (const antlr::LexerSharedInputState &state)
antlr::RefToken nextToken ()
void mCOMMENT_INTRO (bool _createToken)
void mDOT_DOT (bool _createToken)
void mLT_LT (bool _createToken)
void mBOX (bool _createToken)
void mGT_GT (bool _createToken)
void mASSIGN (bool _createToken)
void mRIGHT_SHAFT (bool _createToken)
void mNE (bool _createToken)
void mLE (bool _createToken)
void mGE (bool _createToken)
void mEXPON (bool _createToken)
void mPIPE (bool _createToken)
void mCONCAT (bool _createToken)
void mDOT (bool _createToken)
void mEQ (bool _createToken)
void mLT_ (bool _createToken)
void mGT (bool _createToken)
void mPLUS (bool _createToken)
void mMINUS (bool _createToken)
void mSTAR (bool _createToken)
void mDIV (bool _createToken)
void mLPAREN (bool _createToken)
void mRPAREN (bool _createToken)
void mCOLON (bool _createToken)
void mCOMMA (bool _createToken)
void mSEMI (bool _createToken)
void mTIC (bool _createToken)
void mIDENTIFIER (bool _createToken)
void mCHARACTER_LITERAL (bool _createToken)
void mCHAR_STRING (bool _createToken)
void mNUMERIC_LIT (bool _createToken)
void mWS_ (bool _createToken)
void mCOMMENT (bool _createToken)

Protected Member Functions

void mDIGIT (bool _createToken)
void mBASED_INTEGER (bool _createToken)
void mEXPONENT (bool _createToken)
void mEXTENDED_DIGIT (bool _createToken)

Private Member Functions

void initLiterals ()

Private Attributes

unsigned int m_numberOfErrors
ProblemReporterm_problemReporter

Static Private Attributes

const unsigned long _tokenSet_0_data_ [] = { 4294967288UL, 4294967295UL, 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_ [] = { 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_1
const unsigned long _tokenSet_2_data_ [] = { 0UL, 67043328UL, 2147483648UL, 134217726UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_2
const unsigned long _tokenSet_3_data_ [] = { 4294967288UL, 4294967291UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_3
const unsigned long _tokenSet_4_data_ [] = { 0UL, 67059720UL, 2147483648UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_4
const unsigned long _tokenSet_5_data_ [] = { 0UL, 67043328UL, 2147483648UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_5
const unsigned long _tokenSet_6_data_ [] = { 0UL, 16392UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_6
const unsigned long _tokenSet_7_data_ [] = { 4294958072UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_7

Constructor & Destructor Documentation

AdaLexer::AdaLexer std::istream &  in  ) 
 

Definition at line 16 of file AdaLexer.cpp.

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

Referenced by AdaLexer().

AdaLexer::AdaLexer antlr::InputBuffer &  ib  ) 
 

Definition at line 22 of file AdaLexer.cpp.

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

AdaLexer::AdaLexer const antlr::LexerSharedInputState state  ) 
 

Definition at line 28 of file AdaLexer.cpp.

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


Member Function Documentation

bool AdaLexer::getCaseSensitiveLiterals  )  const [inline]
 

Definition at line 27 of file AdaLexer.hpp.

void AdaLexer::initLiterals  )  [private]
 

Definition at line 34 of file AdaLexer.cpp.

Referenced by AdaLexer().

void AdaLexer::mASSIGN bool  _createToken  ) 
 

Definition at line 446 of file AdaLexer.cpp.

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

Referenced by mASSIGN().

void AdaLexer::mBASED_INTEGER bool  _createToken  )  [protected]
 

Definition at line 1307 of file AdaLexer.cpp.

References _tokenSet_5, _tokenSet_6, ANTLR_USE_NAMESPACE, mBASED_INTEGER(), mEXTENDED_DIGIT(), nullToken, reportError(), and text().

Referenced by mBASED_INTEGER(), and mNUMERIC_LIT().

void AdaLexer::mBOX bool  _createToken  ) 
 

Definition at line 404 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mBOX(), nullToken, reportError(), and text().

Referenced by mBOX().

void AdaLexer::mCHAR_STRING bool  _createToken  ) 
 

Definition at line 1074 of file AdaLexer.cpp.

References _tokenSet_1, _tokenSet_3, ANTLR_USE_NAMESPACE, mCHAR_STRING(), nullToken, reportError(), and text().

Referenced by mCHAR_STRING().

void AdaLexer::mCHARACTER_LITERAL bool  _createToken  ) 
 

Definition at line 1049 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mCHARACTER_LITERAL(), nullToken, reportError(), and text().

Referenced by mCHARACTER_LITERAL().

void AdaLexer::mCOLON bool  _createToken  ) 
 

Definition at line 824 of file AdaLexer.cpp.

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

Referenced by mCOLON().

void AdaLexer::mCOMMA bool  _createToken  ) 
 

Definition at line 845 of file AdaLexer.cpp.

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

Referenced by mCOMMA().

void AdaLexer::mCOMMENT bool  _createToken  ) 
 

Definition at line 1563 of file AdaLexer.cpp.

References _tokenSet_1, _tokenSet_7, ANTLR_USE_NAMESPACE, mCOMMENT(), mCOMMENT_INTRO(), nullToken, reportError(), and text().

Referenced by mCOMMENT().

void AdaLexer::mCOMMENT_INTRO bool  _createToken  ) 
 

Definition at line 341 of file AdaLexer.cpp.

References _tokenSet_0, ANTLR_USE_NAMESPACE, mCOMMENT_INTRO(), nullToken, reportError(), and text().

Referenced by mCOMMENT(), and mCOMMENT_INTRO().

void AdaLexer::mCONCAT bool  _createToken  ) 
 

Definition at line 593 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mCONCAT(), nullToken, reportError(), and text().

Referenced by mCONCAT().

void AdaLexer::mDIGIT bool  _createToken  )  [protected]
 

Definition at line 1284 of file AdaLexer.cpp.

References _tokenSet_4, ANTLR_USE_NAMESPACE, mDIGIT(), nullToken, reportError(), and text().

Referenced by mDIGIT(), mEXPONENT(), mEXTENDED_DIGIT(), and mNUMERIC_LIT().

void AdaLexer::mDIV bool  _createToken  ) 
 

Definition at line 761 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mDIV(), nullToken, reportError(), and text().

Referenced by mDIV().

void AdaLexer::mDOT bool  _createToken  ) 
 

Definition at line 614 of file AdaLexer.cpp.

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

Referenced by mDOT().

void AdaLexer::mDOT_DOT bool  _createToken  ) 
 

Definition at line 362 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mDOT_DOT(), nullToken, reportError(), and text().

Referenced by mDOT_DOT().

void AdaLexer::mEQ bool  _createToken  ) 
 

Definition at line 635 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mEQ(), nullToken, reportError(), and text().

Referenced by mEQ().

void AdaLexer::mEXPON bool  _createToken  ) 
 

Definition at line 551 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mEXPON(), nullToken, reportError(), and text().

Referenced by mEXPON().

void AdaLexer::mEXPONENT bool  _createToken  )  [protected]
 

Definition at line 1374 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mDIGIT(), mEXPONENT(), nullToken, reportError(), and text().

Referenced by mEXPONENT(), and mNUMERIC_LIT().

void AdaLexer::mEXTENDED_DIGIT bool  _createToken  )  [protected]
 

Definition at line 1442 of file AdaLexer.cpp.

References _tokenSet_4, ANTLR_USE_NAMESPACE, mDIGIT(), mEXTENDED_DIGIT(), nullToken, reportError(), and text().

Referenced by mBASED_INTEGER(), and mEXTENDED_DIGIT().

void AdaLexer::mGE bool  _createToken  ) 
 

Definition at line 530 of file AdaLexer.cpp.

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

Referenced by mGE().

void AdaLexer::mGT bool  _createToken  ) 
 

Definition at line 677 of file AdaLexer.cpp.

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

Referenced by mGT().

void AdaLexer::mGT_GT bool  _createToken  ) 
 

Definition at line 425 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mGT_GT(), nullToken, reportError(), and text().

Referenced by mGT_GT().

void AdaLexer::mIDENTIFIER bool  _createToken  ) 
 

Definition at line 910 of file AdaLexer.cpp.

References _tokenSet_1, _tokenSet_2, ANTLR_USE_NAMESPACE, mIDENTIFIER(), nullToken, reportError(), and text().

Referenced by mIDENTIFIER().

void AdaLexer::mLE bool  _createToken  ) 
 

Definition at line 509 of file AdaLexer.cpp.

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

Referenced by mLE().

void AdaLexer::mLPAREN bool  _createToken  ) 
 

Definition at line 782 of file AdaLexer.cpp.

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

Referenced by mLPAREN().

void AdaLexer::mLT_ bool  _createToken  ) 
 

Definition at line 656 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mLT_(), nullToken, reportError(), and text().

Referenced by mLT_().

void AdaLexer::mLT_LT bool  _createToken  ) 
 

Definition at line 383 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mLT_LT(), nullToken, reportError(), and text().

Referenced by mLT_LT().

void AdaLexer::mMINUS bool  _createToken  ) 
 

Definition at line 719 of file AdaLexer.cpp.

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

Referenced by mMINUS().

void AdaLexer::mNE bool  _createToken  ) 
 

Definition at line 488 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mNE(), nullToken, reportError(), and text().

Referenced by mNE().

void AdaLexer::mNUMERIC_LIT bool  _createToken  ) 
 

Definition at line 1113 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mBASED_INTEGER(), mDIGIT(), mEXPONENT(), mNUMERIC_LIT(), nullToken, reportError(), and text().

Referenced by mNUMERIC_LIT().

void AdaLexer::mPIPE bool  _createToken  ) 
 

Definition at line 572 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mPIPE(), nullToken, reportError(), and text().

Referenced by mPIPE().

void AdaLexer::mPLUS bool  _createToken  ) 
 

Definition at line 698 of file AdaLexer.cpp.

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

Referenced by mPLUS().

void AdaLexer::mRIGHT_SHAFT bool  _createToken  ) 
 

Definition at line 467 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mRIGHT_SHAFT(), nullToken, reportError(), and text().

Referenced by mRIGHT_SHAFT().

void AdaLexer::mRPAREN bool  _createToken  ) 
 

Definition at line 803 of file AdaLexer.cpp.

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

Referenced by mRPAREN().

void AdaLexer::mSEMI bool  _createToken  ) 
 

Definition at line 866 of file AdaLexer.cpp.

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

Referenced by mSEMI().

void AdaLexer::mSTAR bool  _createToken  ) 
 

Definition at line 740 of file AdaLexer.cpp.

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

Referenced by mSTAR().

void AdaLexer::mTIC bool  _createToken  ) 
 

Definition at line 887 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mTIC(), nullToken, reportError(), and text().

Referenced by mTIC().

void AdaLexer::mWS_ bool  _createToken  ) 
 

Definition at line 1494 of file AdaLexer.cpp.

References _tokenSet_1, ANTLR_USE_NAMESPACE, mWS_(), nullToken, reportError(), and text().

Referenced by mWS_().

antlr::RefToken AdaLexer::nextToken  ) 
 

Definition at line 107 of file AdaLexer.cpp.

References ANTLR_USE_NAMESPACE, and RefToken.

unsigned int AdaLexer::numberOfErrors  )  const [inline]
 

Definition at line 22 of file AdaLexer.hpp.

Referenced by AdaSupportPart::parse(), and AdaSupportPart::parseContents().

void AdaLexer::reportError const std::string &  errorMessage  )  [inline]
 

Definition at line 22 of file AdaLexer.hpp.

void AdaLexer::reportError const antlr::RecognitionException &  ex  )  [inline]
 

Definition at line 22 of file AdaLexer.hpp.

Referenced by mASSIGN(), mBASED_INTEGER(), mBOX(), mCHAR_STRING(), mCHARACTER_LITERAL(), mCOLON(), mCOMMA(), mCOMMENT(), mCOMMENT_INTRO(), mCONCAT(), mDIGIT(), mDIV(), mDOT(), mDOT_DOT(), mEQ(), mEXPON(), mEXPONENT(), mEXTENDED_DIGIT(), mGE(), mGT(), mGT_GT(), mIDENTIFIER(), mLE(), mLPAREN(), mLT_(), mLT_LT(), mMINUS(), mNE(), mNUMERIC_LIT(), mPIPE(), mPLUS(), mRIGHT_SHAFT(), mRPAREN(), mSEMI(), mSTAR(), mTIC(), and mWS_().

void AdaLexer::reportWarning const std::string &  warnMessage  )  [inline]
 

Definition at line 22 of file AdaLexer.hpp.

void AdaLexer::resetErrors  )  [inline]
 

Definition at line 22 of file AdaLexer.hpp.

Referenced by AdaSupportPart::parse(), AdaSupportPart::parseContents(), and BackgroundParser::run().

void AdaLexer::setProblemReporter ProblemReporter r  )  [inline]
 

Definition at line 22 of file AdaLexer.hpp.

References ANTLR_LEXER_PREAMBLE.

Referenced by AdaSupportPart::parse(), AdaSupportPart::parseContents(), and BackgroundParser::run().


Member Data Documentation

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

Referenced by mCOMMENT_INTRO().

const unsigned long AdaLexer::_tokenSet_0_data_ = { 4294967288UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1630 of file AdaLexer.cpp.

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

Referenced by mASSIGN(), mBOX(), mCHAR_STRING(), mCHARACTER_LITERAL(), mCOLON(), mCOMMA(), mCOMMENT(), mCONCAT(), mDIV(), mDOT(), mDOT_DOT(), mEQ(), mEXPON(), mEXPONENT(), mGE(), mGT(), mGT_GT(), mIDENTIFIER(), mLE(), mLPAREN(), mLT_(), mLT_LT(), mMINUS(), mNE(), mNUMERIC_LIT(), mPIPE(), mPLUS(), mRIGHT_SHAFT(), mRPAREN(), mSEMI(), mSTAR(), mTIC(), and mWS_().

const unsigned long AdaLexer::_tokenSet_1_data_ = { 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1682 of file AdaLexer.cpp.

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

Referenced by mIDENTIFIER().

const unsigned long AdaLexer::_tokenSet_2_data_ = { 0UL, 67043328UL, 2147483648UL, 134217726UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1684 of file AdaLexer.cpp.

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

Referenced by mCHAR_STRING().

const unsigned long AdaLexer::_tokenSet_3_data_ = { 4294967288UL, 4294967291UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1693 of file AdaLexer.cpp.

const antlr::BitSet AdaLexer::_tokenSet_4 [static, private]
 

Referenced by mDIGIT(), and mEXTENDED_DIGIT().

const unsigned long AdaLexer::_tokenSet_4_data_ = { 0UL, 67059720UL, 2147483648UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1745 of file AdaLexer.cpp.

const antlr::BitSet AdaLexer::_tokenSet_5 [static, private]
 

Referenced by mBASED_INTEGER().

const unsigned long AdaLexer::_tokenSet_5_data_ = { 0UL, 67043328UL, 2147483648UL, 126UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1749 of file AdaLexer.cpp.

const antlr::BitSet AdaLexer::_tokenSet_6 [static, private]
 

Referenced by mBASED_INTEGER().

const unsigned long AdaLexer::_tokenSet_6_data_ = { 0UL, 16392UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1753 of file AdaLexer.cpp.

const antlr::BitSet AdaLexer::_tokenSet_7 [static, private]
 

Referenced by mCOMMENT().

const unsigned long AdaLexer::_tokenSet_7_data_ = { 4294958072UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 4294967295UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 1756 of file AdaLexer.cpp.

unsigned int AdaLexer::m_numberOfErrors [private]
 

Definition at line 22 of file AdaLexer.hpp.

ProblemReporter* AdaLexer::m_problemReporter [private]
 

Definition at line 22 of file AdaLexer.hpp.


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:18 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003