try @lexer::rulecatch...not sure the lexers respond to this, however.  
They do not individually trap exceptions I think. Look at the  
nextToken() method. It should be the thing that handles errors emitted  
from calling mTokens() rule method.

Ter
On Jan 17, 2009, at 4:17 PM, Mats Ekberg wrote:

> Hi!
>
> To generate a custom catch clause in the parser one can write:
>
> @rulecatch {
>     ..code..
> }
>
> How do I accomplish the same thing in the lexer?
>
> /mats
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to