1 #ifndef ParserFileLexer_HPP
2 #define ParserFileLexer_HPP
3
4
5
6 #include <soulng/lexer/Lexer.hpp>
7
8 class ParserFileLexer : public soulng::lexer::Lexer
9 {
10 public:
11 ParserFileLexer(const std::u32string& content_, const std::string& fileName_, int fileIndex_);
12 ParserFileLexer(const char32_t* start_, const char32_t* end_, const std::string& fileName_, int fileIndex_);
13 int NextState(int state, char32_t c) override;
14 int leftAngleCount;
15 bool parsingIncludeDeclaration;
16 private:
17 int GetTokenId(int statementIndex);
18 };
19 #endif