[antlr-interest] how to catch the exception in antlr

Jim Idle jimi at temporal-wave.com
Wed Oct 1 07:29:39 PDT 2008


On Wed, 2008-10-01 at 15:07 +0800, William Vian wrote:
> Hi ALL,
>  
> Question as title
> 
> i've tried this ,
> 
> defaultErrorHandler = false; 
>  
> and 
> 
> @rulecatch {
> catch (RecognitionException e) {
> throw e;
> }
> }
>  
> but seems it doesn't work
> 
> I think we are short of documentations ,any one help please, 


Check the wiki pages (wiki link), or the mailing list search on mailman
(from the support link) for displayRecognitionError. To catch an
individual error use

@exception {
}


Jim
>  
> Thanks
> 
> Bill Vian
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081001/9d6d159f/attachment.html 


More information about the antlr-interest mailing list