Error recovering

Jun 28, 2010 at 8:40 AM

Hi, great job!

 

My question is what is the best way of recovering after a syntax error has occured? I mean I need to display a user message: what was wrong and what to do in order to fix the error.

By default, the parser just tells that an unexpected token has reached.

Are there any ways to perform that?

 

Thanks in advance.