Closed robrix closed 9 years ago
Parses everywhere but doesn’t actually produce any trees or advance the input at all.
let null: Parser<()>.Function = { ((), $0) }
This is the same as ε. It could be a workaround for/alternative to #38 in that since it produces () trees, alternation with T will produce T?:
()
T
T?
(x | null) --> { $0.map(const("x matched")) ?? "x did not match" }
This would produce Ignore now.
Ignore
This exists, it’s none.
none
Parses everywhere but doesn’t actually produce any trees or advance the input at all.
This is the same as ε. It could be a workaround for/alternative to #38 in that since it produces
()
trees, alternation withT
will produceT?
: