[antlr-interest] v3.0b5: input size problem

Terence Parr parrt at cs.usfca.edu
Mon Nov 27 14:38:48 PST 2006


On Nov 27, 2006, at 2:25 PM, Paul Shaffer wrote:

>
>>> Sorry, I see this stopping is actually due to my parsing errors. As
>>> I fix the errors I am able to parse farther into the input text, I
>>> am up to line 1600 or so now. But there are no errors being
>>> reported when it stops. I wish I knew how to get errors to show
>>> up-- any suggestions appreciated.
>>
>> Yikes. that sounds like a problem on my side...can you run with
>> ANTLRWorks to figure out where it is?
>> Ter
>
>
> Don't have anything from ANTLRWorks yet.
>
> In general AFAIK there is no error return or exception when the  
> parser quits unexpectedly. If there is an event I don't know how  
> subscribe to it. My project will require some way to inform the  
> user that there was a parser error.

You can override report() no problem and also set the  
@rulecatchclause {...} action or whatever it is called.  I would turn  
on -trace  And then find out where is stopping. it says enter and  
exit rule showing the current symbol of lookahead as it does so.

Ter


More information about the antlr-interest mailing list