Antlr4.Tool.LeftRecursiveRule.LeftRecursiveRule C# (CSharp) Method

LeftRecursiveRule() public method

public LeftRecursiveRule ( Grammar g, string name, RuleAST ast ) : System.Collections.Generic
g Grammar
name string
ast Antlr4.Tool.Ast.RuleAST
return System.Collections.Generic
        public LeftRecursiveRule(Grammar g, string name, RuleAST ast)
            : base(g, name, ast, 1)
        {
            originalAST = ast;
            alt = new Alternative[numberOfAlts + 1]; // always just one
            for (int i = 1; i <= numberOfAlts; i++)
                alt[i] = new Alternative(this, i);
        }