public ParserFile(OutputModelFactory factory, string fileName)
: base(factory, fileName)
{
Grammar g = factory.GetGrammar();
namedActions = BuildNamedActions(factory.GetGrammar());
genPackage = g.tool.genPackage;
exportMacro = factory.GetGrammar().GetOptionString("exportMacro");
// need the below members in the ST for Python, C++
genListener = g.tool.gen_listener;
genVisitor = g.tool.gen_visitor;
grammarName = g.name;
if (g.GetOptionString("contextSuperClass") != null)
{
contextSuperClass = new ActionText(null, g.GetOptionString("contextSuperClass"));
}
}
}