[il-antlr-interest: 28967] Re: [antlr-interest] Building Antlr-3.2 from source on a Mac with Maven

2010-05-22 Thread Naveen
On May 22, 3:13 pm, Alan Condit acon...@ipns.com wrote: Has anybody with a Mac successfully rebuilt Antlr-3.2 from source? I built it successfully like this: download latest source from http://github.com/antlr/antlr edit the pom.xml in the root folder, remove the following two lines:

[il-antlr-interest: 28916] Re: [antlr-interest] Question about building code generation target

2010-05-19 Thread Naveen
On Jan 16 2009, 4:51 pm, Jim Idle j...@temporal-wave.com wrote: When you change your template or codegen target java file, you just type: mvn And it rebuilds just what has changed in a second or two (depends on your machine speed of course). On my slow machine, this takes 33 seconds after

[il-antlr-interest: 28842] [antlr-interest] template output in atlrworks debugger

2010-05-15 Thread Naveen Garg
Is it possible to show template outputs in the antlrworks debugger ? I am trying to run the templates example in antlrworks: ( from the definitive antlr reference: templates/T.g, T.Java, T.stg ) T.g compiles in antlrworks, but it didn't know how to find T.stg... editing T.g under Run = Edit T.g

[il-antlr-interest: 28844] Re: [antlr-interest] Help with Null Pointer Exception

2010-05-15 Thread Naveen
On Mar 2, 1:01 am, swathy murthy pskswa...@gmail.com wrote: the template is not executing. It is giving a Null Pointer Exception. An alternative to stat - {$stat.st} ; // for every stat[ement] is use rewrite in your grammar file options {output=template; rewrite=true; } and

[il-antlr-interest: 28845] Re: [antlr-interest] Help with Null Pointer Exception

2010-05-15 Thread Naveen Garg
I forgot to mention: you also need to us the rewritten tokenstream instead of the output: System.out.println(tokens.toString()); // emit rewritten source instead of System.out.println(output.toString());// emit translation On Sat, May 15, 2010 at 5:27 PM, Naveen naveen.g...@gmail.com wrote