public LeftRecursiveRuleAnalyzer(GrammarAST ruleAST,
AntlrTool tool, string ruleName, string language)
: base(new CommonTreeNodeStream(new GrammarASTAdaptor(ruleAST.Token.InputStream), ruleAST))
{
this.tool = tool;
this.ruleName = ruleName;
this.language = language;
this.tokenStream = ruleAST.g.tokenStream;
if (this.tokenStream == null)
{
throw new InvalidOperationException("grammar must have a token stream");
}
LoadPrecRuleTemplates();
}