[antlr-interest] TestRig Via Ant

Terence Parr parrt at cs.usfca.edu
Sat Nov 17 08:49:25 PST 2012


Sounds like a rebuild of EssexParser is needed or check you have latest 4.0b3 runtime etc…
T
On Nov 16, 2012, at 5:15 PM, Hans Uhlig wrote:

> Source: https://github.com/huhlig/Essex
> 
> I am attempting to run Antlr v4 via Ant
> Script<https://github.com/huhlig/Essex/blob/master/build.xml#L62> and
> am getting a NoSuchMethodException due to the Generated Parser not
> containing a Constructor that takes a org.antlr.v4.runtime.CharStream.
> Which logically is part of the lexer. If I point it to the lexer, it tries
> to append Parser to the back and I end up with LexerParser. How should I be
> calling testrig for this kind of setup?
> 
>     [java] Exception in thread "main" java.lang.NoSuchMethodException:
> com.uhlisys.essex.antlr.EssexParser.<init>(org.antlr.v4.runtime.CharStream)
>     [java]     at java.lang.Class.getConstructor0(Class.java:2721)
>     [java]     at java.lang.Class.getConstructor(Class.java:1674)
>     [java]     at org.antlr.v4.runtime.misc.TestRig.main(TestRig.java:155)
> 
> 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