-
I'm an idiot. Since it's the base class that uses recoverFromError it's of course of no particular use to override it in the derived class. :-P Ideally it would be great if revoverFromError could be made into some kind of interface which can be set during runtime via some kind of addErrorRevocer(ErrorHandler handler) method.
2009-11-09 09:29:10 UTC in Beaver
-
Thanks for the timely answer and the new version. I'll give it a try in the next days and report back if I have any more special requests. ;-) And thanks for bearing with the many typos in my initial articles, I really should do at least some proof-reading before hitting the reply button prematurely.
2009-11-07 00:09:47 UTC in Beaver
-
To be more precise: I tried to override the recoverFromError method but via %embed in the grammar. It seems impossible though since the method signature mandates a TokenStream which is marked as private in the class Parser.
2009-11-06 13:58:00 UTC in Beaver
-
Is there a way to disable error recovery? The automatic error recovery does not fit into my use case and I'd like to ask whether there is a way which I have not yet discovered yet.
2009-11-06 13:37:55 UTC in Beaver