Open cronburg opened 5 years ago
This is low priority (triggered by a user's code formatting error, results in a compile-time error rather than unexpected runtime behavior), but is somewhat pernicious (it's not at all obvious to an end-user why the quasiquoter "worked" but didn't give them the right symbols).
https://github.com/cronburg/antlr-haskell/blob/master/test/g4/DoubleSemi.hs
Delete the
//
on line 11 intest/g4/DoubleSemi.hs
and we get the following error:First off G4 probably shouldn't parse successfully on two semicolons (bug), but just as importantly the parser shouldn't be throwing away if we want to allow for multiple semicolons in a row as a kind of no-op.
If we choose the latter, perhaps a warning message will be pertinent.