BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
587 stars 165 forks source link

bnfc gives unhelpful error messages #144

Closed danr closed 9 years ago

danr commented 9 years ago

On this grammar:

Test.  Test ::= " ")";

bnfc reports:

bnfc: src/LexBNF.x:(80,13)-(86,20): Non-exhaustive patterns in case

The error message could be more helpful! :)

gdetrez commented 9 years ago

is this better?

bnfc: syntax error at line 1, column 20 before `)'
danr commented 9 years ago

Definitely!