Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can run ANTLRWorks and tell it to generate the output code or you can run ANTLR directly from the commandline with:

Code Block

$ java -jar antlr-3.1.2.jar mygrammar.g

or

Code Block

$ java -cp antlr-3.1.2.jar org.antlr.Tool mygrammar.g

Running ANTLR with no parameters shows you:

...

For example, consider how to make the LL-star example from the examples tarball you can get at http://www.antlr.org/download/examples-v3.tar.gz.

No Format
$ cd examples-v3/java/LL-star
$ java org.antlr.Tool SimpleC.g
$ javac *.java

...