also remember to grab the src tar.gz not the antlr.jar file. Ter On Apr 19, 2009, at 7:15 PM, Jim Idle wrote:
> Yeah sorry. In order to switch to maven based builds we moved all > the directories. Find the other .st files in the tree and locate > there. Under resources tree. Probably easiest to request a perforce > account and build using maven. > > Jim > ------Original Message------ > From: John Lynn > Sender: [email protected] > To: Terence Parr > Cc: [email protected] > Sent: Apr 19, 2009 19:10 > Subject: Re: [antlr-dev] Getting off the ground with a new target > > I'm getting nowhere making sense of the jar contents... > > I'm wondering - in the paper "How to build an ANTLR code generation > target", it start off with "In src/org/antlr/codegen/templates/ " ... > but no such directory exists in the latest antlr-3.1.3 folder > structure. So I'm using the antlr-3.1 download. Am I trying to follow > this paper using the right download? > > On Sun, Apr 12, 2009 at 9:33 PM, Terence Parr <[email protected]> > wrote: >> I'd unjar the stuff: >> >> $ jar cf antlr-3.1.3.jar >> >> and it will dump the contents. You need the org dir in your >> CLASSPATH. Then >> put your XYZ.stg all the way down with the other templates :) >> Ter >> On Apr 12, 2009, at 6:24 PM, John Lynn wrote: >> >>> Sorry for my java newbness; I appreciate the help. I got the verbose >>> output, but I'm not so sure it helps. >>> >>> A couple more questions: >>> >>> - Is there a working directory where I should be running this from? >>> >>> - Is there a non-jar way to run this that might work better? >>> >>> thanks... >>> >>> On 4/11/09, Terence Parr <[email protected]> wrote: >>>> >>>> On Apr 11, 2009, at 11:55 AM, John Lynn wrote: >>>> >>>>> Sorry, I didn't quote the correct directory - it is indeed >>>>> actually in >>>>> " src\org\antlr\codegen\templates\XZY", and still I get the error: >>>>> >>>>>>> error(10): internal error: no such group file XYZ.stg >>>>>>> error(20): cannot find code generation templates XYZ.stg >>>>> >>>>> I tried looking at the source to see if that would help, but I was >>>>> unable to glean any clues. >>>> >>>> try -verbose option on java to see where it's loading files. If >>>> you're using the antlr jar it won't look in file system for >>>> anything >>>> (jar's semantics). >>>> >>>> Ter >>>> >> >> > _______________________________________________ > antlr-dev mailing list > [email protected] > http://www.antlr.org/mailman/listinfo/antlr-dev > > > Sent via BlackBerry from T-Mobile _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org/mailman/listinfo/antlr-dev
