djrieger / mjplusplus

A compiler for the MiniJava language
http://djrieger.github.io/mjplusplus/doc/doxygen/html/
6 stars 1 forks source link

Improve Lexer error messages #38

Closed Nidan closed 9 years ago

Nidan commented 9 years ago

parser_incorrect/Simon_incorrect_9.mj Lexer error at line 2, column 1: @ ^ Add "invalid character" to description

parser_incorrect/Simon_incorrect_11.mj Lexer error at line 3, column 1:

^ Add something like "Comment reaches end of file" to description, with position marking the start of comment.