Beispiel #1
0
 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();
 }
Beispiel #2
0
 public virtual IList<AltAST> GetUnlabeledAlternatives(RuleAST ast)
 {
     AltLabelVisitor visitor = new AltLabelVisitor(new Antlr.Runtime.Tree.CommonTreeNodeStream(new GrammarASTAdaptor(), ast));
     visitor.rule();
     return visitor.GetUnlabeledAlternatives();
 }