// Generated from Sysy.g4 by ANTLR 4.12.0 #pragma once #include "antlr4-runtime.h" namespace antlrSysY { class SysyLexer : public antlr4::Lexer { public: enum { IDENT = 1, DECIMAL_CONST = 2, OCTAL_CONST = 3, HEXADECIMAL_CONST = 4, WS = 5, SINGLELINE_COMMENT = 6, MULTILINE_COMMENT = 7, StringLiteral = 8, CONST = 9, COMMA = 10, SEMICOLON = 11, INT = 12, LBRACKET = 13, RBRACKET = 14, ASSING = 15, LBRACE = 16, RBRACE = 17, LPAREN = 18, RPAREN = 19, VOID = 20, IF = 21, ELSE = 22, WHILE = 23, BREAK = 24, CONTINUE = 25, RETURN = 26, ADD = 27, SUB = 28, NOT = 29, MUL = 30, DIV = 31, MOD = 32, LT = 33, GT = 34, LE = 35, GE = 36, EQ = 37, NE = 38, AND = 39, OR = 40 }; explicit SysyLexer(antlr4::CharStream *input); ~SysyLexer() override; std::string getGrammarFileName() const override; const std::vector& getRuleNames() const override; const std::vector& getChannelNames() const override; const std::vector& getModeNames() const override; const antlr4::dfa::Vocabulary& getVocabulary() const override; antlr4::atn::SerializedATNView getSerializedATN() const override; const antlr4::atn::ATN& getATN() const override; // By default the static state used to implement the lexer is lazily initialized during the first // call to the constructor. You can call this function if you wish to initialize the static state // ahead of time. static void initialize(); private: // Individual action functions triggered by action() above. // Individual semantic predicate functions triggered by sempred() above. }; } // namespace antlrSysY