3 ms·
Interesting. I've last had to deal with formal grammars in the previous century, and your post had me go scratch the surface of what PEGs are. If I understand
by dxdm 2y ago
Interesting. I've last had to deal with formal grammars in the previous century, and your post had me go scratch the surface of what PEGs are.
If I understand correctly, your example is not a well-formed grammar, because of the left recursion.
So what you're saying is that PEGs align badly with our expectations, tempting us to create non-well-formed grammars, and making it hard to recognize them as such, because our brains want to parse them differently. Right?