Repetition

class for matching repetitions

Constructors

this
this(Parser!(T) toRepeat)
Undocumented in source.

Members

Functions

parse
ParseResult!(T) parse(T[] s)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

fToRepeat
Parser!(T) fToRepeat;
Undocumented in source.

Examples

unittest for repetition

auto parser = *match("a");
auto res = parser.parse("aa");
res.success.shouldBeTrue;
res.rest.shouldEqual("");
res.results.length.shouldEqual(2);

Meta