Example #1
0
 public void Register(IGrammarBuilder <INode> grammar)
 {
     grammar.Sequence("choice",
                      grammar.Ref("sequence"),
                      grammar.ZeroOrMore(null, grammar.Sequence(null,
                                                                grammar.TerminalValue("|"),
                                                                grammar.Ref("sequence").Lift()
                                                                ))
                      ).ReduceWith(Reduce);
 }