antlr.gunit.Interp有哪些选项?如何打开其详细选项?

antlr.gunit.Interp有哪些选项?如何打开其详细选项?,antlr,verbose,gunit,Antlr,Verbose,Gunit,我当然弄错了,但antlr的gunit似乎没有用户的选择 bash-3.2$ java org.antlr.gunit.Interp --help Exception in thread "main" java.io.FileNotFoundException: --help (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.&

我当然弄错了,但antlr的gunit似乎没有用户的选择

bash-3.2$ java org.antlr.gunit.Interp --help
Exception in thread "main" java.io.FileNotFoundException: --help (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at java.io.FileInputStream.<init>(FileInputStream.java:79)
    at org.antlr.runtime.ANTLRFileStream.load(ANTLRFileStream.java:59)
    at org.antlr.runtime.ANTLRFileStream.<init>(ANTLRFileStream.java:47)
    at org.antlr.runtime.ANTLRFileStream.<init>(ANTLRFileStream.java:42)
    at org.antlr.gunit.Interp.main(Interp.java:62)
bash-3.2$ 

假设您使用的是antlr3,查看GitHub()上的源代码,您就知道没有详细选项是正确的


验证测试失败原因的一种方法是在调试模式下通过AntlrWorks运行输入,以便查看匹配的规则。

应该对每个gunit用户都感兴趣?
 [java] -----------------------------------------------------------------------
 [java] executing testsuite for grammar:while with 31 tests
 [java] -----------------------------------------------------------------------
 [java] 2 failures found:
 [java] test15 (variables, line20) - 
 [java] expected: OK
 [java] actual: FAIL
 [java] 
 [java] test20 (read, line27) - 
 [java] expected: OK
 [java] actual: FAIL
 [java]