[antlr-interest] Antlr 3.0: run time and java compiling errors

Terence Parr parrt at cs.usfca.edu
Thu Jul 13 08:40:42 PDT 2006


Hi.  These are very strange errors (could be classpath issue); the  
public void class thing is odd.  No rule name 'class' exists.  Works  
fine under 1.4; ok, 1.5 works:

~/antlr/code/examples-v3/java/java $ java -Xmx400M org.antlr.Tool java.g
ANTLR Parser Generator   Early Access Version 3.0b3 (July ??, 2006)   
1989-2006
java.g:719:9: Decision can match input such as "'0'..'9'{'E', 'e'} 
{'+', '-'}'0'..'9'{'D', 'F', 'd', 'f'}" using multiple alternatives:  
3, 4
As a result, alternative(s) 4 were disabled for that input
java.g:762:35: Decision can match input such as "{'$', 'A'..'Z', '_',  
'a'..'z', '\u00C0'..'\u00D6', '\u00D8'..'\u00F6', '\u00F8'..'\u1FFF',  
'\u3040'..'\u318F', '\u3300'..'\u337F', '\u3400'..'\u3D2D',  
'\u4E00'..'\u9FFF', '\uF900'..'\uFAFF'}" using multiple alternatives:  
1, 2
As a result, alternative(s) 2 were disabled for that input
~/antlr/code/examples-v3/java/java $ javac *.java
~/antlr/code/examples-v3/java/java $ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

Terence



More information about the antlr-interest mailing list