Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> doc >> libantlr3-gunit-java-doc
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: antlr3  ]

软件包: libantlr3-gunit-java-doc (3.5.2-9)

API documentation for gUnit

gUnit is a "Unit Test" framework for ANTLR grammars. It provides a simple way to write and run automated tests for ANTLR grammars in a manner similar to Java unit testing framework jUnit. The basic idea is to create a bunch of input/output pairs for rules in a grammar and gUnit will verify the expected output/result. The input can be a single line or multiple lines of strings or even an external file. The output can be simply success or failure, an abstract syntax tree (AST), a rule return value, or some text output which could be a rule's template return value. The current version of gUnit has 2 main functions, interpreter and jUnit generator. The interpreter interprets your gUnit script and runs unit tests using Java reflection to invoke methods in your parser objects. The generator, on the other hand, translates your gUnit script to jUnit Java code that you can compile and execute by hand.

This package provides the API documentation for gUnit for ANTLR 3

其他与 libantlr3-gunit-java-doc 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: antlr3-doc
    language tool for constructing compilers etc - documentation
  • dep: junit4-doc
    JUnit regression test framework for Java - documentation

下载 libantlr3-gunit-java-doc

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 336.2 kB5680 kB [文件列表]