[antlr-interest] treewalker in infinite loop

Andy Tripp antlr at jazillian.com
Tue Jul 24 09:20:58 PDT 2007


The tree parser itself loops.

I have no doubt that it's doing what I asked for, can't you make it do 
what I *meant*
to ask for?  ;)

Andy


Terence Parr wrote:
>
> On Jul 24, 2007, at 7:56 AM, Andy Tripp wrote:
>
>> When I have an empty alternative in a treewalker, it gets into an 
>> infinite loop.
>> I assume it's the same bug as this one, which only mentions the 
>> problem in a lexer:
>> http://www.antlr.org:8888/browse/ANTLR-102
>
> Is it ANTLR or the tree parser itself that loops?  If you do
>
> a : ( foo )* ;
>
> foo : ;
>
> it might loop but that is what you asked for ;)
>
> Ter
>



More information about the antlr-interest mailing list