00001 #ifndef INC_XMLLexer_hpp_ 00002 #define INC_XMLLexer_hpp_ 00003 00004 #include "antlr/config.hpp" 00005 /* $ANTLR 2.7.1: "XML.g" -> "XMLLexer.hpp"$ */ 00006 #include "antlr/CommonToken.hpp" 00007 #include "antlr/InputBuffer.hpp" 00008 #include "antlr/BitSet.hpp" 00009 #include "XMLLexerTokenTypes.hpp" 00010 #include "antlr/CharScanner.hpp" 00011 #line 20 "XML.g" 00012 00013 // head of lexer file 00014 #include <iostream> 00015 #include "Query.hpp" 00016 00017 #line 18 "XMLLexer.hpp" 00018 class XMLLexer : public ANTLR_USE_NAMESPACE(antlr)CharScanner, public XMLLexerTokenTypes 00019 { 00020 #line 1 "XML.g" 00021 #line 22 "XMLLexer.hpp" 00022 private: 00023 void initLiterals(); 00024 public: 00025 bool getCaseSensitiveLiterals() const; 00026 public: 00027 XMLLexer(ANTLR_USE_NAMESPACE(std)istream& in); 00028 XMLLexer(ANTLR_USE_NAMESPACE(antlr)InputBuffer& ib); 00029 XMLLexer(const ANTLR_USE_NAMESPACE(antlr)LexerSharedInputState& state); 00030 ANTLR_USE_NAMESPACE(antlr)RefToken nextToken(); 00031 protected: void mLETTER(bool _createToken); 00032 protected: void mDIGIT(bool _createToken); 00033 public: void mNAME(bool _createToken); 00034 public: void mSTART_TAG(bool _createToken); 00035 public: void mSTART_OF_END_TAG(bool _createToken); 00036 public: void mEND_OF_TAG(bool _createToken); 00037 public: void mEND_OF_EMPTY_TAG(bool _createToken); 00038 public: void mEQ(bool _createToken); 00039 public: void mSTRING(bool _createToken); 00040 public: void mCOMMENT(bool _createToken); 00041 public: void mWHITE(bool _createToken); 00042 private: 00043 00044 static const unsigned long _tokenSet_0_data_[]; 00045 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0; 00046 static const unsigned long _tokenSet_1_data_[]; 00047 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1; 00048 static const unsigned long _tokenSet_2_data_[]; 00049 static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2; 00050 }; 00051 00052 #endif /*INC_XMLLexer_hpp_*/