[antlr-interest] gUnitEditor

Shaoting Cai caishaoting at gmail.com
Sun Apr 19 15:38:59 PDT 2009


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 <aleiby.antlr at gmail.com> 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 <parrt at cs.usfca.edu> 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
>
>


More information about the antlr-interest mailing list