Versions Compared

Key

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

...

Please send bug reports, feedback, and patches to me or the antlr-interest mailing list If you would like to get more involved in developing the JavaScript target, you can check out the JavaScript target mailing list or Google Code project.

This page was modeled on the Python target's page: thanks Benjamin Niemann.

Release History

3.1 - JavaScript target added.

3.2 - Unfortunately, ANTLR 3.2 shipped with some serious bugs in the JavaScript target that makes it mostly unusable. These have been fixed in the trunk, so it is suggested that you build ANTLR from source if you'd like to use the JavaScript target. An up-to-date build of the JavaScript runtime is attached to this page for convenience.

Requirements

The JavaScript target has been tested on IE 7/8, FF 2/3, Safari 3, and Rhino.  We plan to support all A Grade Browsers, Rhino, and SpiderMonkey eventually.  The JavaScript runtime library will need to be loaded before you can make use of a compiled grammar.  In addition, if you're using Rhino and would like to use the ANTLRFileStream class, you'll need to include the antlr3-cli script (available in the runtime zip previously linked).

Usage

Selecting JavaScript Output

...

Examples

There are a wealth of examples available in the Google Code project's subversion antlr-examples repository.  You also might want to look at the functional tests.

Anchor
missingFeatures
missingFeatures

...