[antlr-interest] treewalker in infinite loop
Terence Parr
parrt at cs.usfca.edu
Tue Jul 24 08:44:17 PDT 2007
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