[antlr-interest] Throwing an excption in a Tree Action

Sinan sinan.karasu at boeing.com
Thu Jun 20 11:50:46 PDT 2002


mzukowski at yci.com wrote:
> 
> No, you currently can't specify specific Exceptions that a rule can throw.
> You have to make sure that the exceptions you throw are subclasses of
> RecognitionException.
> 
> Monty

Or if you don't want antlr to catch it, RunTimeException...

(which is what I do to emulate behaviour of "goto", "gosub" 
and "return".....)

sinan

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list