I just started playing with PEG.js and have a grammar problem (greatly simplified for debugging):
start = presingle single / preplural plural presingle = "a" / "b" preplural = "b" / "c" single = "d" / "e" plural = "dd" / "ee"
I am using http://pegjs.majda.cz/online
This grammar cannot bdd .
Line 1, column 3: Expected "a" but "d" found.
Is this what PEGs cannot do, or can I turn my grammar into something that will analyze it?
PS If I try to parse (erroneously recommended?) bda , I get a meaningless error:
Line 1, column 3: Expected "a" but "a" found.
source share