1#ifndef INC_MDLexer_hpp_
2#define INC_MDLexer_hpp_
4#include <antlr/config.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>
14#include "antlr/CharScanner.hpp"
16#include "mdParser/FilenameObserver.hpp"
19class CUSTOM_API
MDLexer :
public ANTLR_USE_NAMESPACE(antlr)CharScanner,
public MDTokenTypes
25 int deferredLineCount;
30 void initDeferredLineCount() { deferredLineCount = 0;}
31 void deferredNewline() {
36 virtual void newline() {
37 for (;deferredLineCount>0;deferredLineCount--) {
38 CharScanner::newline();
40 CharScanner::newline();
47 bool getCaseSensitiveLiterals()
const
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 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);
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 static const unsigned long _tokenSet_8_data_[];
104 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_8;
105 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;