[antlr-interest] TestRig Via Ant

Hans Uhlig huhlig at uhlisys.com
Fri Nov 16 17:15:11 PST 2012


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)


More information about the antlr-interest mailing list