]> gitweb.ps.run Git - toc/blob - gen/TocLexer.h
generic grammar
[toc] / gen / TocLexer.h
1 \r
2 // Generated from Toc.g4 by ANTLR 4.9.2\r
3 \r
4 #pragma once\r
5 \r
6 \r
7 #include "antlr4-runtime.h"\r
8 \r
9 \r
10 \r
11 \r
12 class  TocLexer : public antlr4::Lexer {\r
13 public:\r
14   enum {\r
15     T__0 = 1, T__1 = 2, T__2 = 3, T__3 = 4, T__4 = 5, T__5 = 6, T__6 = 7, \r
16     T__7 = 8, T__8 = 9, T__9 = 10, T__10 = 11, T__11 = 12, T__12 = 13, T__13 = 14, \r
17     T__14 = 15, T__15 = 16, T__16 = 17, T__17 = 18, T__18 = 19, T__19 = 20, \r
18     T__20 = 21, T__21 = 22, T__22 = 23, T__23 = 24, T__24 = 25, T__25 = 26, \r
19     T__26 = 27, T__27 = 28, T__28 = 29, T__29 = 30, T__30 = 31, T__31 = 32, \r
20     T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, T__36 = 37, T__37 = 38, \r
21     T__38 = 39, T__39 = 40, T__40 = 41, T__41 = 42, T__42 = 43, T__43 = 44, \r
22     T__44 = 45, T__45 = 46, T__46 = 47, T__47 = 48, T__48 = 49, T__49 = 50, \r
23     T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, T__54 = 55, INT_LIT = 56, \r
24     DECIMAL_LIT = 57, STRING_LIT = 58, BOOL_LIT = 59, NAME = 60, WS = 61, \r
25     NEWLINE = 62\r
26   };\r
27 \r
28   explicit TocLexer(antlr4::CharStream *input);\r
29   ~TocLexer();\r
30 \r
31   virtual std::string getGrammarFileName() const override;\r
32   virtual const std::vector<std::string>& getRuleNames() const override;\r
33 \r
34   virtual const std::vector<std::string>& getChannelNames() const override;\r
35   virtual const std::vector<std::string>& getModeNames() const override;\r
36   virtual const std::vector<std::string>& getTokenNames() const override; // deprecated, use vocabulary instead\r
37   virtual antlr4::dfa::Vocabulary& getVocabulary() const override;\r
38 \r
39   virtual const std::vector<uint16_t> getSerializedATN() const override;\r
40   virtual const antlr4::atn::ATN& getATN() const override;\r
41 \r
42 private:\r
43   static std::vector<antlr4::dfa::DFA> _decisionToDFA;\r
44   static antlr4::atn::PredictionContextCache _sharedContextCache;\r
45   static std::vector<std::string> _ruleNames;\r
46   static std::vector<std::string> _tokenNames;\r
47   static std::vector<std::string> _channelNames;\r
48   static std::vector<std::string> _modeNames;\r
49 \r
50   static std::vector<std::string> _literalNames;\r
51   static std::vector<std::string> _symbolicNames;\r
52   static antlr4::dfa::Vocabulary _vocabulary;\r
53   static antlr4::atn::ATN _atn;\r
54   static std::vector<uint16_t> _serializedATN;\r
55 \r
56 \r
57   // Individual action functions triggered by action() above.\r
58 \r
59   // Individual semantic predicate functions triggered by sempred() above.\r
60 \r
61   struct Initializer {\r
62     Initializer();\r
63   };\r
64   static Initializer _init;\r
65 };\r
66 \r