or

convenient function

Parser!(T)
or
(
T
)

Examples

showing off the or dsl

import unit_threaded;

auto parser = or(match("a"), match("b"), match("c"));
parser.parse("a").success.shouldBeTrue;
parser.parse("b").success.shouldBeTrue;
parser.parse("c").success.shouldBeTrue;

Meta