Closed orbit-dna closed 6 years ago
When constructing PEG parsers, alternation is left to right. You need to put the longer unique prefix first. Your parser_1 succeeds on 'a' and then sees extra input at the end of the document - the second 'a'. This is not a bug, but the way this formalism works.
Alternation seems have problem when one alternative contains another.
version: 1.8.2.
this code:
parser_1 not work while parser_2 works as expected.
Is this a bug ? or should I avoid using parslet in this way ?