djrieger / mjplusplus

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

Non-termination when compiling *.mj file with non-closed comment at the end #2

Closed ratefuchs closed 9 years ago

ratefuchs commented 9 years ago

When trying to compile the program class ten { /*, an error message is generated ("Error from lexer") but the program does not terminate. When giving the --lextest flag, mj++ correctly gives an error and terminates. I suspect this might be a problem in the parser, specifically with the lexer -> parser connection.

djrieger commented 9 years ago

I'll take a look at it right now