public virtual IDictionary<string, IList<System.Tuple<int, AltAST>>> GetLabeledAlternatives(RuleAST ast) { AltLabelVisitor visitor = new AltLabelVisitor(new Antlr.Runtime.Tree.CommonTreeNodeStream(new GrammarASTAdaptor(), ast)); visitor.rule(); return visitor.GetLabeledAlternatives(); }
public virtual IList<AltAST> GetUnlabeledAlternatives(RuleAST ast) { AltLabelVisitor visitor = new AltLabelVisitor(new Antlr.Runtime.Tree.CommonTreeNodeStream(new GrammarASTAdaptor(), ast)); visitor.rule(); return visitor.GetUnlabeledAlternatives(); }