A PEG parser should never match anything with this rule, because to match the symbol a you must first attempt to match the symbol a. (If your parser matches anything with this rule, it isn't a PEG parser.)
Why don't you rewrite your rule as follows? a <- ('a' / 'b')* 'a' / 'b' Best, - Francisco Mota On 1/31/12, Ondřej Bílka <nel...@seznam.cz> wrote: > What your parser does on following rule: > a = a* 'a' | 'b' > say on string ababbba > > -- > > NOTICE: alloc: /dev/null: filesystem full > > _______________________________________________ > PEG mailing list > PEG@lists.csail.mit.edu > https://lists.csail.mit.edu/mailman/listinfo/peg > _______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg