1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "antlr4-common.h"
13 struct InterpreterData {
15 dfa::Vocabulary vocabulary;
16 std::vector<std::string> ruleNames;
17 std::vector<std::string> channels; // Only valid for lexer grammars.
18 std::vector<std::string> modes; // ditto
20 InterpreterData() {}; // For invalid content.
21 InterpreterData(std::vector<std::string> const& literalNames, std::vector<std::string> const& symbolicNames);
24 // A class to read plain text interpreter data produced by ANTLR.
25 class ANTLR4CPP_PUBLIC InterpreterDataReader {
27 static InterpreterData parseFile(std::string const& fileName);