Posted 14 years ago
by David
Hi, I'm looking into ways to handle error recovery. So far if the parser finds an error, it just terminates, which is not very good. I want it to indicate an error, but be able to return to an error-less state so that it can continue parsing.
I've looked into other parser engines, and read up on the 'burke-fisher' recovery methods and so the general methods seem to point to that when a error is found, you either insert, substitute or delete a token.
Now I know that the semantic parser works with a clone of the token set, due to the threading stuff, but can I do the above 3 methods directly on the token set that is passed to the semantic parser?
I won't need to edit the actual tokens in the document...I just need to be able to edit them for error recover.
Any other advice on error recovery would be grateful also.
Thanks.
I've looked into other parser engines, and read up on the 'burke-fisher' recovery methods and so the general methods seem to point to that when a error is found, you either insert, substitute or delete a token.
Now I know that the semantic parser works with a clone of the token set, due to the threading stuff, but can I do the above 3 methods directly on the token set that is passed to the semantic parser?
I won't need to edit the actual tokens in the document...I just need to be able to edit them for error recover.
Any other advice on error recovery would be grateful also.
Thanks.