> bison and other parsers provide an `error' token to gracefully handle
> syntax errors. How can this be emulated in pyggy?
I dont have a good answer for this right now. GLR parsers
operate a little differently in that they will explore
several different possible parses and drop a parse if
it turns out to be erroneous. This could make error handling
more difficult (although maybe not). I'll have to think
about this a little more before coming up with a solution.
Unfortunately I am very busy at the moment and I dont
expect to be able to get around to this for at least a few
weeks.
If anyone has ideas, I'd be glad to hear them. Off the
top of my head I think a scheme with an error token
that gets invoked only when there is a single viable
parse (ie. all other parallel parses have already
been discarded) might work.
> Werner
Tim Newsham
http://www.lava.net/~newsham/