craff / pacomb

A parsing library that compiles grammars to combinators using elimination of left recursion
MIT License
18 stars 2 forks source link

Add a combinator for tests #4

Closed craff closed 5 years ago

craff commented 5 years ago

Probably two combinators: test_before and test_after. tests will be lost if applied to a grammar parsing the empty input. Is this a problem ? Should this trigger an error ?

craff commented 5 years ago

commit bec2b11b235df15976aabba23e115644fc65dde0 and commit 02a82535e57a99c617068f11e7ff3c24b52762e3

Provide a test_before and test_after. For good reasons these does not accept grammar parsing the empty input.