[antlr-interest] gUnit and classpaths

Leon Su leon.antlr at mac.com
Fri Nov 2 18:07:37 PDT 2007


Hi,

Please try to add a header into your gUnit script as below:

gunit your-grammar-name;
@header{package your-package-path;}
rule testsuites


Leon

On Nov 2, 2007, at 5:31 AM, Andreas Ravnestad wrote:

> Hi all,
>
> I am planning to use gUnit for unit testing our grammar, however the
> examples on the wiki is rather lacking in covering the corner cases.
> My problem in particular is this: How do I run gunit tests for a
> grammar/lexer which resides in a specific package?
>
> That is, my parser and lexer are generated and compiled into
> ./bin/no/ntnu/xqft/parse/. How can I make gUnit aware of where to find
> these classes?
>
> Thanks, Andreas



More information about the antlr-interest mailing list