Hi Aaron, Could you send me a copy of your grammar and the test file?
Shaoting On Sun, Apr 19, 2009 at 5:20 PM, Aaron Leiby <[email protected]> wrote: > I think my first problem was that I was expecting it to compile the grammar > for me as needed. When it didn't do that, I had ANTLRworks export the .java > files for me, and when that didn't work, I had ANTLRworks compile it for me > (via its automatic support when using its Debug... facilities). > Unfortunately, that puts all the .class files nicely in a 'class' > subdirectory. Finally, I simply compiled my .java code manually via > commandline, and that seemed to have done the trick, however, it then just > locked up when I pressed run. > > At that point I tried just running gUnit on my grammar from the commandline, > and it also hung, so there's either a problem with my grammar, or a problem > with the tests. I haven't tracked it down any further. I've just been > using the Debug... functionality of ANTLRworks for testing stuff instead. > On Sun, Apr 19, 2009 at 3:38 PM, Shaoting Cai <[email protected]> wrote: >> >> Hi Aaron, >> >> Thanks for reporting this. >> >> Is your grammar using any user defined classes? gUnit runtime will >> look for all the classes needed to run the grammar. Could you try >> just run gUnit without GUI and see if it complains? >> $ java org.antlr.gunit.Interp < MyGrammar.gunit >> >> Shaoting >> >> On Sat, Apr 18, 2009 at 2:41 PM, Aaron Leiby <[email protected]> >> wrote: >> > This is pretty sweet! >> > >> > Has anyone gotten this to 'Run' the actual tests in Leopard though? >> > >> > I keep getting 'MyGrammarLexer not found'. >> > >> > On the website it says: >> > >> >> The class files of the parser and lexer should be in the same directory >> >> of >> >> the .g and .gunit file. >> > >> > My .g and .gunit files are in the same directory, though not in >> > ~/Development/antlr where I have ANTLRworks generating files to. >> > >> > (While on that note, is there any way to tell ANTLRworks to export >> > generated >> > code relative to the .g file?) >> > >> > So I've manually copied the exported lexer, parser and tokens files to >> > the >> > folder where my .g and .guint files are, but still no luck (same error >> > as >> > above - even after restarting gUnitEditor). >> > >> > I tried leaving the generated files in ~/Development/antlr and launching >> > gUnitEditor with: >> > >> > java -cp ~/Development/antlr:antlr-master-3.1.4-SNAPSHOT-completejar.jar >> > org.antlr.gunit.swingui.Tool >> > >> > But again get the same error. >> > >> > What am I missing? >> > >> > On Sat, Apr 11, 2009 at 3:33 PM, Terence Parr <[email protected]> >> > wrote: >> >> >> >> Hi, thanks to Shaoting Cai, we now have a gui for gunit :) >> >> >> >> >> >> >> >> http://www.antlr.org/wiki/display/ANTLR3/gUnitEditor+-+A+Swing+GUI+for+gUnit >> >> >> >> Terence >> >> >> >> List: http://www.antlr.org/mailman/listinfo/antlr-interest >> >> Unsubscribe: >> >> http://www.antlr.org/mailman/options/antlr-interest/your-email-address >> > >> > >> > >> > List: http://www.antlr.org/mailman/listinfo/antlr-interest >> > Unsubscribe: >> > http://www.antlr.org/mailman/options/antlr-interest/your-email-address >> > >> > > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
