Testing grammars with JUnit

Grammar Testing

ANTLR Testing is a library for testing grammars produced by ANTLR using JUnit. It is a Java library that will work only with grammars implemented in Java by ANTLR.

I use it for my No Latte interpreter, and I make my compiler and programming-languages students use it at Calvin College.

Getting Started

  1. Download the latest JAR file (anything older than version 0.7).
  2. Add it to your classpath.
  3. Use it.