forked from jasder/antlr
A few changes that slipped through.
This commit is contained in:
parent
3f7c67106b
commit
8d420e3d24
|
@ -38,7 +38,7 @@ LexerInterpreter::LexerInterpreter(const std::string &grammarFileName, const dfa
|
|||
for (size_t i = 0; i < atn.getNumberOfDecisions(); ++i) {
|
||||
_decisionToDFA.push_back(dfa::DFA(_atn.getDecisionState(i), i));
|
||||
}
|
||||
_interpreter = new atn::LexerATNSimulator(_atn, _decisionToDFA, _sharedContextCache); /* mem-check: deleted in d-tor */
|
||||
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache); /* mem-check: deleted in d-tor */
|
||||
}
|
||||
|
||||
LexerInterpreter::~LexerInterpreter()
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace antlr4 {
|
|||
// @deprecated
|
||||
std::vector<std::string> _tokenNames;
|
||||
const std::vector<std::string> &_ruleNames;
|
||||
const std::vector<std::string> &_channelNames;
|
||||
const std::vector<std::string> &_channelNames;
|
||||
const std::vector<std::string> &_modeNames;
|
||||
std::vector<dfa::DFA> _decisionToDFA;
|
||||
|
||||
|
|
|
@ -21,8 +21,7 @@ namespace misc {
|
|||
InterpreterData(std::vector<std::string> const& literalNames, std::vector<std::string> const& symbolicNames);
|
||||
};
|
||||
|
||||
// A class to read plain text interpreter data produced by ANTLR when run with
|
||||
// the -interpreter option.
|
||||
// A class to read plain text interpreter data produced by ANTLR.
|
||||
class ANTLR4CPP_PUBLIC InterpreterDataReader {
|
||||
public:
|
||||
static InterpreterData parseFile(std::string const& fileName);
|
||||
|
|
Loading…
Reference in New Issue