[il-antlr-interest: 28967] Re: [antlr-interest] Building Antlr-3.2 from source on a Mac with Maven
On May 22, 3:13 pm, Alan Condit 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: gunit gunit-maven-plugin there were errors building the gunit plugin otherwise on mac. you may need an existing antlr-3.2 and antlr-2.7.7.jar in your classpath in the root folder again, run: mvn -N install mvn -Dmaven.test.skip=true mvn -Dmaven.test.skip=true package assembly:assembly this will put a antlr-master-3.2.1-SNAPSHOT-completejar.jar weighing 1.6mb in the target folder. List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 28916] Re: [antlr-interest] Question about building code generation target
On Jan 16 2009, 4:51 pm, Jim Idle 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 changing 1 template file. However, once its built, I can unjar to /path/to/antlr_unjarred export CLASSPATH=/path/to/antlr_unjarred:$CLASSPATH and edit the templates without having to rebuild anything. by the way, are there plans to integrate the build of the other runtimes into maven ? List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 28899] Re: [antlr-interest] Building ANTLR v3.2 from source.
> Is it possible for just anyone to read the ANTLR Perforce depot? Their is a mirror at github: http://github.com/antlr incidentally, the error is fixed in the the development branch. I don't know why the wiki download doesn't suggest downloading from github or perforce instead of offering an outdated source archive with a faulty pom.xml. cloning the repo fails with: Cannot obtain needed tree 23d67ec01a2eba755068ead240ab22f8b2582344 also, there are no tags setup... but you can download the master HEAD using the github web interface, unzip, and: mvn -N install mvn -Dmaven.test.skip=true mvn -Dmaven.test.skip=true package assembly:assembly List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 28845] Re: [antlr-interest] Help with Null Pointer Exception
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 wrote: > On Mar 2, 1:01 am, swathy murthy 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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 28844] Re: [antlr-interest] Help with Null Pointer Exception
On Mar 2, 1:01 am, swathy murthy 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 use TokenReWriteStream instead of CommonTokenStream in the testrig TokenRewriteStream tokens = new TokenRewriteStream(lexer); See the /templates/rewriter/1pass example in the antlr book List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 28842] [antlr-interest] template output in atlrworks debugger
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 Test Rig for Java to match T.Java from the bookcode caused problems connecting the debugger. So, I just took the template from T.stg and put it inline: options {output=template;} s : ID '=' INT ';' -> template(x={$ID.text},y={$INT.text}) " := ;" ; Now the template was found, and the debugger parses the input fine, but I get nothing in the debugger output. Running the example from the command line, and connecting to the remote debugger under antlrworks: java org.antlr.Tool -debug T.g javac Test.java TParser.java TLexer.java I get the template output on the command line but not in the antlrworks debugger... List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.