xref: /aosp_15_r20/external/antlr/runtime/ObjC/README (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger RobotANTLR version 3 supports target language generation for the lexical
2*16467b97STreehugger Robotanalyzer and parsers. Objective C was supported previously but had not
3*16467b97STreehugger Robotbeen brought up to date for some time. This release is built on the work
4*16467b97STreehugger Robotby Kay Roepke, Ian Michell and Alan Condit.
5*16467b97STreehugger Robot
6*16467b97STreehugger RobotThe project is currently working sufficiently for me to use it in compiling
7*16467b97STreehugger Robotmy grammar and tree walker. I am sure that it still has some bugs but I have
8*16467b97STreehugger Robotfixed all of the bugs that I have found so far.
9*16467b97STreehugger Robot
10*16467b97STreehugger RobotThe project consists of an Objective-C runtime framework that must be
11*16467b97STreehugger Robotinstalled in /Library/Frameworks.
12*16467b97STreehugger Robot
13*16467b97STreehugger RobotIt also requires the installation of the String Template files to
14*16467b97STreehugger Robotsupport the target language code generation. Hopefully, at some point
15*16467b97STreehugger Robotthey will be incorporated into the ANTLR release code, so that the
16*16467b97STreehugger Robotindividual user doesn't have to do anything but load the framework into
17*16467b97STreehugger Robotthe proper location. However, for now you need to create an ObjC
18*16467b97STreehugger Robotdirectory in antlr-3.2/tool/src/main/resources/org/antlr/codegen/templates
19*16467b97STreehugger Robotand then copy the ObjC ".stg" files to
20*16467b97STreehugger Robotantlr-3.2/tool/src/main/resources/org/antlr/codegen/templates/ObjC/*.
21*16467b97STreehugger Robot
22*16467b97STreehugger RobotThere is also a java file ObjCTarget.java that goes in <
23*16467b97STreehugger Robotantlr-3.2/tool/src/main/java/org/antlr/codegen/ObjCTarget/Java>.
24*16467b97STreehugger Robot
25*16467b97STreehugger RobotIf you are using Antlr3.3 the code from here is included with the Antlr tarball. You just need
26*16467b97STreehugger Robotto copy the ANTLR.framework to /Library/Frameworks.
27*16467b97STreehugger Robot
28*16467b97STreehugger Robotantlr3.4.1
29*16467b97STreehugger RobotFeb. 22, 2012 -- I just uploaded a new binary(zipped) copy of the ANTLR.framework and antlr3.4.jar
30*16467b97STreehugger Robotthat has all of the renaming changes that I did to match the Java source names and
31*16467b97STreehugger Robotfixes to the DFA transitions. This is antlr-3.4.1.jar.