| 1 | #ifndef INC_MDLexer_hpp_ | 
| 2 | #define INC_MDLexer_hpp_ | 
| 3 |  | 
| 4 | #include <antlr/config.hpp> | 
| 5 | /* $ANTLR 2.7.5 (20050406): "MDParser.g" -> "MDLexer.hpp"$ */ | 
| 6 | #include <antlr/CommonToken.hpp> | 
| 7 | #include <antlr/InputBuffer.hpp> | 
| 8 | #include <antlr/BitSet.hpp> | 
| 9 | #include "MDTokenTypes.hpp" | 
| 10 | #include <antlr/CharScanner.hpp> | 
| 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 "MDLexer.hpp" | 
| 19 | class CUSTOM_API MDLexer : public ANTLR_USE_NAMESPACE(antlr)CharScanner, public MDTokenTypes | 
| 20 | { | 
| 21 | #line 173 "MDParser.g" | 
| 22 |  | 
| 23 |  | 
| 24 |  | 
| 25 | int deferredLineCount; | 
| 26 | FilenameObserver* observer; | 
| 27 |  | 
| 28 | public: | 
| 29 | void setObserver(FilenameObserver* osv) {observer = osv;} | 
| 30 | void initDeferredLineCount() { deferredLineCount = 0;} | 
| 31 | void deferredNewline() { | 
| 32 | deferredLineCount++; | 
| 33 | } | 
| 34 |  | 
| 35 |  | 
| 36 | virtual void newline() { | 
| 37 | for (;deferredLineCount>0;deferredLineCount--) { | 
| 38 | CharScanner::newline(); | 
| 39 | } | 
| 40 | CharScanner::newline(); | 
| 41 | } | 
| 42 |  | 
| 43 | #line 23 "MDLexer.hpp" | 
| 44 | private: | 
| 45 | void initLiterals(); | 
| 46 | public: | 
| 47 | bool getCaseSensitiveLiterals() const | 
| 48 | { | 
| 49 | return true; | 
| 50 | } | 
| 51 | public: | 
| 52 | MDLexer(ANTLR_USE_NAMESPACE(std)istream& in); | 
| 53 | MDLexer(ANTLR_USE_NAMESPACE(antlr)InputBuffer& ib); | 
| 54 | MDLexer(const ANTLR_USE_NAMESPACE(antlr)LexerSharedInputState& state); | 
| 55 | ANTLR_USE_NAMESPACE(antlr)RefToken nextToken(); | 
| 56 | public: void mASSIGNEQUAL(bool _createToken); | 
| 57 | public: void mCOLON(bool _createToken); | 
| 58 | public: void mCOMMA(bool _createToken); | 
| 59 | public: void mQUESTIONMARK(bool _createToken); | 
| 60 | public: void mSEMICOLON(bool _createToken); | 
| 61 | public: void mLPAREN(bool _createToken); | 
| 62 | public: void mRPAREN(bool _createToken); | 
| 63 | public: void mLBRACKET(bool _createToken); | 
| 64 | public: void mRBRACKET(bool _createToken); | 
| 65 | public: void mLCURLY(bool _createToken); | 
| 66 | public: void mRCURLY(bool _createToken); | 
| 67 | public: void mPLUS(bool _createToken); | 
| 68 | public: void mMINUS(bool _createToken); | 
| 69 | public: void mWhitespace(bool _createToken); | 
| 70 | public: void mComment(bool _createToken); | 
| 71 | protected: void mEndOfLine(bool _createToken); | 
| 72 | public: void mCPPComment(bool _createToken); | 
| 73 | public: void mPREPROC_DIRECTIVE(bool _createToken); | 
| 74 | protected: void mLineDirective(bool _createToken); | 
| 75 | protected: void mSpace(bool _createToken); | 
| 76 | protected: void mDecimal(bool _createToken); | 
| 77 | public: void mStringLiteral(bool _createToken); | 
| 78 | public: void mCharLiteral(bool _createToken); | 
| 79 | protected: void mEscape(bool _createToken); | 
| 80 | protected: void mDigit(bool _createToken); | 
| 81 | protected: void mLongSuffix(bool _createToken); | 
| 82 | protected: void mUnsignedSuffix(bool _createToken); | 
| 83 | protected: void mFloatSuffix(bool _createToken); | 
| 84 | protected: void mExponent(bool _createToken); | 
| 85 | protected: void mVocabulary(bool _createToken); | 
| 86 | public: void mNumber(bool _createToken); | 
| 87 | public: void mID(bool _createToken); | 
| 88 | private: | 
| 89 |  | 
| 90 | static const unsigned long _tokenSet_0_data_[]; | 
| 91 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; | 
| 92 | static const unsigned long _tokenSet_1_data_[]; | 
| 93 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; | 
| 94 | static const unsigned long _tokenSet_2_data_[]; | 
| 95 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; | 
| 96 | static const unsigned long _tokenSet_3_data_[]; | 
| 97 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; | 
| 98 | static const unsigned long _tokenSet_4_data_[]; | 
| 99 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; | 
| 100 | static const unsigned long _tokenSet_5_data_[]; | 
| 101 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; | 
| 102 | static const unsigned long _tokenSet_6_data_[]; | 
| 103 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; | 
| 104 | static const unsigned long _tokenSet_7_data_[]; | 
| 105 | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; | 
| 106 | }; | 
| 107 |  | 
| 108 | #endif /*INC_MDLexer_hpp_*/ |