[antlr-interest] ObjC problems

Rod Schmidt rod at infinitenil.com
Mon Aug 8 14:14:49 PDT 2011


Ok, I figured out that the latest antlr-3.4 doesn't have the right ObjC templates. I tried downloading the antlr-3.4 source, replacing the templates and ObjCTemplate.java file from Alan's latest ANTLR.framework downoad and building. The build fails with the following:

[INFO] Skipping ANTLR Master build control POM 3.4
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ANTLR Master build control POM 3.4 ................ SUCCESS [46.430s]
[INFO] Antlr 3.4 Runtime ................................. SUCCESS [1:53.877s]
[INFO] ANTLR Grammar Tool v 3.4 .......................... FAILURE [41.300s]
[INFO] Maven plugin for ANTLR V3.4 ....................... SKIPPED
[INFO] ANTLR gUnit v3.4 .................................. SKIPPED
[INFO] Maven plugin for gUnit ANTLR V3.4 ................. SKIPPED
[INFO] ANTLR3 Maven Archetype 3.4 ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:43.823s
[INFO] Finished at: Mon Aug 08 15:06:46 MDT 2011
[INFO] Final Memory: 25M/92M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project antlr: Compilation failure
[ERROR] /Users/rod/Downloads/antlr-3.4/tool/src/main/java/org/antlr/codegen/ObjCTarget.java:[46,11] write(org.stringtemplate.v4.ST,java.lang.String) in org.antlr.codegen.CodeGenerator cannot be applied to (org.antlr.stringtemplate.StringTemplate,java.lang.String)
[ERROR] -> [Help 1]

This leads me to believe that the latest ObjCTarget.java file may not be the latest. 
Does anybody have a version of antlr-3.4 that is built with the most up to date Objective-C templates?

Thanks.


More information about the antlr-interest mailing list