[antlr-interest] TestRig Via Ant

Graham Wideman gwlist at grahamwideman.com
Fri Nov 16 17:35:07 PST 2012


Hi Hans,

Not a direct answer, but this recent thread on the antlr-interest list might be of interest:

TestRig: use with package-ized lexer/parser?
Several messages 11-11 through 11-12

Hope that helps.

-- Graham


At 11/16/2012 05: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