changeset 70 | e6868bd2942b |
parent 66 | 9215b9fb8852 |
69:cc3f7908b942 | 70:e6868bd2942b |
---|---|
7 |
7 |
8 def || (right : => Parser[I, T]) : Parser[I, T] = |
8 def || (right : => Parser[I, T]) : Parser[I, T] = |
9 new AltParser(this, right) |
9 new AltParser(this, right) |
10 def ==>[S] (f: => T => S) : Parser [I, S] = |
10 def ==>[S] (f: => T => S) : Parser [I, S] = |
11 new FunParser(this, f) |
11 new FunParser(this, f) |
12 def ~[S] (right : => Parser[I, S]) : Parser[I, (T, S)] = |
|
13 new SeqParser(this, right) |
|
12 } |
14 } |
13 |
15 |
14 |
16 |