00001 #ifndef INC_NexiLexer_hpp_
00002 #define INC_NexiLexer_hpp_
00003
00004 #line 18 "nexilang.g"
00005
00006 #include "indri/QuerySpec.hpp"
00007 #include "indri/DateParse.hpp"
00008 #include "indri/delete_range.hpp"
00009 #include "indri/NexiLexer.hpp"
00010 #include <algorithm>
00011 #include <cctype>
00012
00013 #line 14 "NexiLexer.hpp"
00014 #include <antlr/config.hpp>
00015
00016 #include <antlr/CommonToken.hpp>
00017 #include <antlr/InputBuffer.hpp>
00018 #include <antlr/BitSet.hpp>
00019 #include "NexiLexerTokenTypes.hpp"
00020 #include <antlr/CharScanner.hpp>
00021 ANTLR_BEGIN_NAMESPACE(indri)
00022 ANTLR_BEGIN_NAMESPACE(lang)
00023 class CUSTOM_API NexiLexer : public ANTLR_USE_NAMESPACE(antlr)CharScanner, public NexiLexerTokenTypes
00024 {
00025 #line 58 "nexilang.g"
00026
00027 private:
00028 bool _numbers;
00029
00030 public:
00031 void init() {
00032 _numbers = false;
00033 }
00034
00035 void setNumbers(bool f) {
00036 _numbers = f;
00037 }
00038 #line 25 "NexiLexer.hpp"
00039 private:
00040 void initLiterals();
00041 public:
00042 bool getCaseSensitiveLiterals() const
00043 {
00044 return true;
00045 }
00046 public:
00047 NexiLexer(ANTLR_USE_NAMESPACE(std)istream& in);
00048 NexiLexer(ANTLR_USE_NAMESPACE(antlr)InputBuffer& ib);
00049 NexiLexer(const ANTLR_USE_NAMESPACE(antlr)LexerSharedInputState& state);
00050 ANTLR_USE_NAMESPACE(antlr)RefToken nextToken();
00051 public: void mSTAR(bool _createToken);
00052 public: void mO_PAREN(bool _createToken);
00053 public: void mC_PAREN(bool _createToken);
00054 public: void mO_SQUARE(bool _createToken);
00055 public: void mC_SQUARE(bool _createToken);
00056 public: void mDBL_QUOTE(bool _createToken);
00057 public: void mQUOTE(bool _createToken);
00058 public: void mDOT(bool _createToken);
00059 public: void mCOMMA(bool _createToken);
00060 public: void mSLASH(bool _createToken);
00061 public: void mMINUS(bool _createToken);
00062 public: void mPLUS(bool _createToken);
00063 protected: void mTAB(bool _createToken);
00064 protected: void mCR(bool _createToken);
00065 protected: void mLF(bool _createToken);
00066 protected: void mSPACE(bool _createToken);
00067 protected: void mHIGH_CHAR(bool _createToken);
00068 protected: void mDIGIT(bool _createToken);
00069 protected: void mASCII_LETTER(bool _createToken);
00070 protected: void mSAFE_LETTER(bool _createToken);
00071 protected: void mSAFE_CHAR(bool _createToken);
00072 protected: void mTEXT_TERM(bool _createToken);
00073 protected: void mNUMBER(bool _createToken);
00074 protected: void mFLOAT(bool _createToken);
00075 public: void mTERM(bool _createToken);
00076 public: void mOPERATORS(bool _createToken);
00077 public: void mLESS(bool _createToken);
00078 public: void mGREATER(bool _createToken);
00079 public: void mLESSEQ(bool _createToken);
00080 public: void mGREATEREQ(bool _createToken);
00081 public: void mEQUALS(bool _createToken);
00082 public: void mJUNK(bool _createToken);
00083 private:
00084
00085 static const unsigned long _tokenSet_0_data_[];
00086 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
00087 static const unsigned long _tokenSet_1_data_[];
00088 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
00089 static const unsigned long _tokenSet_2_data_[];
00090 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2;
00091 };
00092
00093 ANTLR_END_NAMESPACE
00094 ANTLR_END_NAMESPACE
00095 #endif