Saturday, September 14, 2002 05:31 PM
There's a number of facilities you can use. First, try supplementing your rules with the 'paraphrase' option to deliver more user-friendly errors.
Second, you can create your own error handler and override the default error handler.
If you want the parser to continue reading past the error then I think you will need to have some sort of semantic checker that knows when to stop consuming tokens on the input stream and allow regular parsing to continue. This is clearly some extra work and is usually only done for commercial compilers that are used within an IDE or command-line.