Antlr4.Analysis.LeftRecursiveRuleAnalyzer.LeftRecursiveRuleAnalyzer C# (CSharp) Method

LeftRecursiveRuleAnalyzer() public method

public LeftRecursiveRuleAnalyzer ( GrammarAST ruleAST, AntlrTool tool, string ruleName, string language ) : System.Collections.Generic
ruleAST Antlr4.Tool.Ast.GrammarAST
tool AntlrTool
ruleName string
language string
return System.Collections.Generic
        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();
        }