| 1 | tim | 770 | #ifndef INC_MDLexer_hpp_ | 
| 2 |  |  | #define INC_MDLexer_hpp_ | 
| 3 |  |  |  | 
| 4 |  |  | #include <antlr/config.hpp> | 
| 5 | gezelter | 2040 | /* $ANTLR 2.7.7 (20141024): "MDParser.g" -> "MDLexer.hpp"$ */ | 
| 6 | tim | 770 | #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 | gezelter | 2046 | #line 274 "MDParser.g" | 
| 22 | tim | 770 |  | 
| 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 mWhitespace(bool _createToken); | 
| 68 |  |  | public: void mComment(bool _createToken); | 
| 69 |  |  | protected: void mEndOfLine(bool _createToken); | 
| 70 |  |  | public: void mCPPComment(bool _createToken); | 
| 71 |  |  | public: void mPREPROC_DIRECTIVE(bool _createToken); | 
| 72 |  |  | protected: void mLineDirective(bool _createToken); | 
| 73 |  |  | protected: void mSpace(bool _createToken); | 
| 74 |  |  | protected: void mDecimal(bool _createToken); | 
| 75 |  |  | public: void mStringLiteral(bool _createToken); | 
| 76 |  |  | public: void mCharLiteral(bool _createToken); | 
| 77 |  |  | protected: void mEscape(bool _createToken); | 
| 78 |  |  | protected: void mDigit(bool _createToken); | 
| 79 |  |  | protected: void mVocabulary(bool _createToken); | 
| 80 |  |  | public: void mID(bool _createToken); | 
| 81 | tim | 814 | protected: void mHEX_DIGIT(bool _createToken); | 
| 82 |  |  | public: void mNUM_INT(bool _createToken); | 
| 83 |  |  | protected: void mEXPONENT(bool _createToken); | 
| 84 |  |  | protected: void mFLOAT_SUFFIX(bool _createToken); | 
| 85 | tim | 770 | private: | 
| 86 |  |  |  | 
| 87 |  |  | static const unsigned long _tokenSet_0_data_[]; | 
| 88 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; | 
| 89 |  |  | static const unsigned long _tokenSet_1_data_[]; | 
| 90 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; | 
| 91 |  |  | static const unsigned long _tokenSet_2_data_[]; | 
| 92 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; | 
| 93 |  |  | static const unsigned long _tokenSet_3_data_[]; | 
| 94 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3; | 
| 95 |  |  | static const unsigned long _tokenSet_4_data_[]; | 
| 96 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4; | 
| 97 |  |  | static const unsigned long _tokenSet_5_data_[]; | 
| 98 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_5; | 
| 99 |  |  | static const unsigned long _tokenSet_6_data_[]; | 
| 100 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_6; | 
| 101 |  |  | static const unsigned long _tokenSet_7_data_[]; | 
| 102 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_7; | 
| 103 | tim | 814 | static const unsigned long _tokenSet_8_data_[]; | 
| 104 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8; | 
| 105 | cli2 | 1275 | static const unsigned long _tokenSet_9_data_[]; | 
| 106 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_9; | 
| 107 |  |  | static const unsigned long _tokenSet_10_data_[]; | 
| 108 |  |  | static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_10; | 
| 109 | tim | 770 | }; | 
| 110 |  |  |  | 
| 111 |  |  | #endif /*INC_MDLexer_hpp_*/ |