[antlr-interest] Catch errors and stop token stream creation

Hélène Chagnot helene.chagnot at gmail.com
Thu Jun 26 07:05:22 PDT 2008


Thanks Gavin for your reply, that achieves the desired result.

It seems like rather a contrived way to exit from unrecognised text however
: is there not an option that can be set to exit immediately when this
occurs ?

Thanks.



On Thu, Jun 26, 2008 at 11:46 AM, Gavin Lambert <antlr at mirality.co.nz>
wrote:

> At 21:19 26/06/2008, Hélène Chagnot wrote:
>
>> Working with ANTLR 3.1b1, we would like to capture unrecognised tokens
>> passed to the lexer to immediately stop parsing when incorrect text is
>> entered.
>>
>
> Did you look at this?
>  http://www.antlr.org/wiki/pages/viewpage.action?pageId=5341217
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080626/3a3fe144/attachment.html 


More information about the antlr-interest mailing list