Parser.parseAll

Undocumented in source. Be warned that the author may not have intended to support it.
class Parser(T)
parseAll
(
T[] s
)

Examples

trying to parse all of the input

import unit_threaded;

auto parser = match("test");
auto res = parser.parseAll("test");

res.success.shouldBeTrue;
res.rest.length.shouldEqual(0);

res = parser.parseAll("test1");
res.success.shouldBeFalse;

Meta