[antlr-interest] Directory organization

Alan Condit acondit at ipns.com
Tue May 11 09:13:31 PDT 2010


I am running a Mac with OS X 10.6.

I have built a grammar under Antlrworks and have it compiling in my project with Objective-C. I am currently using "language=C".  It is a real pain in the butt to have to go delete the parser and lexer '.m' files and rename the '.c' files to '.m' every time I do code generation under Antlrworks. 

I downloaded the tarball for Antlr-3.2 and unpacked it in my "source" directory. In looking at the documentation on code generation targets, the directories from the source tarball don't seem to come close to the directories discussed on the wiki documentation pages. 

I have the last two books by Terrance Parr also but I am not finding any good info on getting started on modifying template files and using them from within Antlrworks.

I have found the C templates and where to modify them to generate .m files that I need instead of .c files they now generate. Now I just need to figure out how to get Antlrworks/Antlr to use them instead of the ones in the jar.

Help please!

Thanks,
Alan
---

Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071

Email -- acondit at ipns.com
Home-Office (503) 982-0906



More information about the antlr-interest mailing list