[antlr-interest] Re: ANTLR Works and compiler settings...

Jim Idle jimi at temporal-wave.com
Wed Apr 19 03:23:44 PDT 2006


It works fine with 1.5 but the generated code incurs warnings that should be removed at some point. JDK 1.5 works fine on MAC now so perhaps ANTLR 3 could be updated to accommodate it at some point.
 
Jim

________________________________

From: antlr-interest-bounces at antlr.org on behalf of Jean Bovet
Sent: Sun 4/16/2006 7:41 AM
To: Rob Greene
Cc: ANTLR Interest
Subject: Re: [antlr-interest] Re: ANTLR Works and compiler settings...


Interesting... so with 1.5 is does not work but with 1.4 it works? 

Jean

On Apr 14, 2006, at 4:58 AM, Rob Greene wrote:


	Update:
	
	After sending my email, I realized that I did have a 1.4 JDK installed, and that does work.
	
	So, maybe this is a report that the Java code generation does not compile without tweaking under Java 5.0.  :-)
	
	Thanks!
	-Rob
	
	
	On 4/13/06, Rob Greene <robgreene at gmail.com> wrote: 

		Is there a trick to getting ANTLR Works to compile a grammer and working in the debugger?
		
		When I have com.sun.tools.javac selected, I get the following error: "Compiler exception: com.sun.tools.javac.Main" 
		
		When I have javac (but not path) selected, I get: "Compiler exception: CreateProcess javac -classpath ... error=2"
		
		When I have javac with path to Java 5.0, I get: "Cannot launch the debugger.  Time-out waiting to connect to the remote user." and the console shows: 
		    [23:10:34] Note: C:\Temp\ANTLR\BasicBasic.java uses unchecked or unsafe operations.
		    [23:10:34] Note: Recompile with -Xlint:unchecked for details.
		    [23:10:41] Launch with path =C:\Temp\ANTLR\classes;C:\Temp\ANTLR\antlrworks- 1.0ea8.jar;C:\Temp\ANTLR\antlrworks-1.0ea8.jar;.
		
		Does the Java code generated work with Java 5.0?  (Yes, I do get java files created.)  Do I need to downgrade to Java 1.4 while developing in ANTLR Works?
		
		Besides that, this has a lot of promise.  I'm hoping that once the debugger is functional, I will be able to actually run the grammar against a file and see whatever output I need to produce?  Is ANTLR v3 considered stable enough that I should use that, still as a beginner, over v2? 
		
		Thanks!
		
		-Rob
		





More information about the antlr-interest mailing list