[antlr-interest] Newbie prob - nondeterminism :-(
mzukowski at yci.com
mzukowski at yci.com
Fri Mar 21 08:37:17 PST 2003
You have statement allowed to match nothing at all:
statement : ( loopst | inputst | printst | exitst | ifst )* (nl)* ;
Then you have a list of these:
statement_list : ( ( statement )* ) ;
Having a closure over epsilon leads you to an infinite loop.
Perhaps statement should be:
statement : ( loopst | inputst | printst | exitst | ifst )+ (nl)* ;
Monty
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list