2021-04-04 18:24:11 +05:30
|
|
|
|
|
|
|
// Generated from /home/atreya/Documents/Projects/Miscellaneous/bfc/grammar/bfe.g4 by ANTLR 4.8
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "antlr4-runtime.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class bfeLexer : public antlr4::Lexer {
|
|
|
|
public:
|
|
|
|
enum {
|
2021-04-13 11:25:48 +05:30
|
|
|
NEWLINE = 1, COMMENT = 2, ML_COMMENT = 3, DEF = 4, LOOPSTART = 5, LOOPEND = 6,
|
|
|
|
GRPSTART = 7, GRPEND = 8, NUMBER = 9, INPUT = 10, OUTPUT = 11, DEC = 12,
|
|
|
|
INC = 13, LEFT = 14, RIGHT = 15, EVERYTHING_ELSE = 16, WS = 17
|
2021-04-04 18:24:11 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
bfeLexer(antlr4::CharStream *input);
|
|
|
|
~bfeLexer();
|
|
|
|
|
|
|
|
virtual std::string getGrammarFileName() const override;
|
|
|
|
virtual const std::vector<std::string>& getRuleNames() const override;
|
|
|
|
|
|
|
|
virtual const std::vector<std::string>& getChannelNames() const override;
|
|
|
|
virtual const std::vector<std::string>& getModeNames() const override;
|
|
|
|
virtual const std::vector<std::string>& getTokenNames() const override; // deprecated, use vocabulary instead
|
|
|
|
virtual antlr4::dfa::Vocabulary& getVocabulary() const override;
|
|
|
|
|
|
|
|
virtual const std::vector<uint16_t> getSerializedATN() const override;
|
|
|
|
virtual const antlr4::atn::ATN& getATN() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static std::vector<antlr4::dfa::DFA> _decisionToDFA;
|
|
|
|
static antlr4::atn::PredictionContextCache _sharedContextCache;
|
|
|
|
static std::vector<std::string> _ruleNames;
|
|
|
|
static std::vector<std::string> _tokenNames;
|
|
|
|
static std::vector<std::string> _channelNames;
|
|
|
|
static std::vector<std::string> _modeNames;
|
|
|
|
|
|
|
|
static std::vector<std::string> _literalNames;
|
|
|
|
static std::vector<std::string> _symbolicNames;
|
|
|
|
static antlr4::dfa::Vocabulary _vocabulary;
|
|
|
|
static antlr4::atn::ATN _atn;
|
|
|
|
static std::vector<uint16_t> _serializedATN;
|
|
|
|
|
|
|
|
|
|
|
|
// Individual action functions triggered by action() above.
|
|
|
|
|
|
|
|
// Individual semantic predicate functions triggered by sempred() above.
|
|
|
|
|
|
|
|
struct Initializer {
|
|
|
|
Initializer();
|
|
|
|
};
|
|
|
|
static Initializer _init;
|
|
|
|
};
|
|
|
|
|