[antlr-interest] ANTLR grammar: Clarifications needed
Bharath S
bharath at starthis.com
Wed Apr 28 13:16:44 PDT 2004
Hi Antlers,
I have a rule of the form:
**
Statements: (statement)* ;
**
and I get a warning "Non-determinism between Alt 1 and exit branch of
block". If I use the "warnWhenFollowAmbig = false" command, I still get the
error. Any ideas?
Also, I am wondering how to differenciate between two rules, BOOLEAN and
INTEGER in the lexer. They are of the form:
BOOLEAN: '1'|'0';
INTEGER: ('0'..'9')+(UNDERSCORE ('0'..'9')+ )?;
Can I differenciate these rules without making them "protected"?
Thanks!!
Bharath.
-----Original Message-----
From: birmanstefan [mailto:birmanstefan at yahoo.com]
Sent: Wednesday, April 28, 2004 2:19 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] missing class in 2.7.3 -
ASTFrame$MyTreeSelectionListener
Hi! While trying to run example antlr-2.7.3/examples/java/java I got
this message :
[andrei at stefan java]$ java -classpath $CLASSPATH:. Main -showtree
tests/E.java
Parsing...
/home/andrei/antlr-2.7.3/examples/java/java/tests/E.java
Exception in thread "main" java.lang.NoClassDefFoundError:
antlr/debug/misc/ASTFrame$MyTreeSelectionListener
at antlr.debug.misc.ASTFrame.<init>(ASTFrame.java:42)
at Main.doTreeAction(Main.java:89)
at Main.parseFile(Main.java:74)
at Main.doFile(Main.java:54)
at Main.main(Main.java:24)
[andrei at stefan java]$
In 2.7.2 this issue doesn't appear. Is there a fix for this issue or
am I doing smthg wrong?
PS: my aplication which used to work on 2.7.2 doesn't work anymore
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list