[antlr-interest] whitespaces in middle of rule
William Lam <xeenman at yahoo.com>
xeenman at yahoo.com
Wed Jan 22 18:22:36 PST 2003
Sorry for this newbie question, but I wish to parse a grammar
such as a Java import statement i.e.
import aaaa.bbbb.cccc.*;
so I set up a grammar similar to this
import_statement:
"import" IDENT (DOT (IDENT | STAR))* SEMI
;
The problem is that the rule will validate statments filled with
spaces, such as this
import aaaa . bbbb . cccc . *;
How do I make sure my import statements do not have any spaces? I
notice that the example under antlr/examples/java exhibit this
problem.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list