|
|
||
|
Mike,
Cheers,
// Brian
Maybe it's also interesting to show what cannot be expressed with PEGs. Apart from the textbook examples (see the Wikipedia links), I think I found one with practical relevance:
I found no closed PEG for properly parsing Lua 5.1 long strings and long comments. This is easy for any finite subset:
"[==[" * (P(1)-"]==]")^0 * "]==]"