or

convenient function

Parser!(T)
or
(
T
)

Examples

showing off the or dsl

1 import unit_threaded;
2 
3 auto parser = or(match("a"), match("b"), match("c"));
4 parser.parse("a").success.shouldBeTrue;
5 parser.parse("b").success.shouldBeTrue;
6 parser.parse("c").success.shouldBeTrue;

Meta