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

Rule() public method

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

Same methods

Rule::Rule ( ) : System.Collections.Generic