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