[antlr-interest] gUnit (Aug 20, 2007) incompatible with ANTLR 3.1b intermediate builds

Adam Connelly adam.rpconnelly at googlemail.com
Tue Jan 8 06:55:41 PST 2008


One thing I'd be interested in finding out about is the compatibility with
different languages other than Java.  I get the feeling at the moment that
to use gUnit you have to use antlr to generate java sources that you then
compile and pass to gUnit (although I could be wrong).  Are there any plans
to support other languages (i.e. C# :)) or to make it language agnostic
(which I suspect will be a non-starter).

It's just that I'd like to use something like gUnit for testing my grammars,
but don't want to have to generate them for different target languages just
for the sake of testing (although even that's probably easier than writing
my own unit tests all the time).

Is the gUnit source in a downloadable place that I could take a look at if I
get a chance?

Adam

On 08/01/2008, Ana Nelson <nelson.ana at gmail.com> wrote:
>
> I had some trouble getting gUnit working, I was getting Java Exceptions
> such as:
> Exception in thread "main" java.lang.NoSuchFieldError: type
>
> Eventually I changed my classpath to reference the official antlr release
> ( antlr-3.0.1) and not the intermediate build/early access version (
> antlr-2007-12-31.17), and recompiled the grammar I was testing with
> antlr-3.0.1 and that did the trick.
>
> I did try compiling gUnit.g with antlr-2007-12-31.17 to see if I could use
> the more recent version, but there's an issue with quote escaping so the
> generated .java files won't compile.
>
> Just posting this here in case anyone else has a similar problem.
>
> Are there any plans to make gUnit part of ANTLR? I would really like to
> have tests for my grammars and to stay up to date with recent versions of
> ANTLR (since I'm hoping to switch to the Ruby target if it gets more
> development).
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080108/0b75e99e/attachment.html 


More information about the antlr-interest mailing list