A few changes that slipped through.

This commit is contained in:
Mike Lischke 2017-04-21 17:23:39 +02:00
parent 3f7c67106b
commit 8d420e3d24
3 changed files with 3 additions and 4 deletions

View File

@ -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()

View File

@ -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;

View File

@ -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);