Versions Compared

Key

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

The ActionScript code generation target

Info
titleComing soon in in V3.1

The ActionScript target is targeted for inclusion in the ANTLR 3.1 release. Content in this page borrows liberally from Python Target page and is in the process of being edited. It currently contains references to Python and some Python examples which are being convereted..

Please note that the ActionScript target is (compared to most other targets) rather young. I would consider it to be in alpha state. This means that most parts are working (big exception are template output), but bugs and problems are to be expected and documentation is pretty poor. It still has to prove itself in a real world application (which is currently being done).

Both the runtime module and the code generation templates should now be feature complete and in sync with the Java target (Version 3.0.1), except for the features listed below. But large parts of the runtime are still untested.

...

The runtime generates ActionScript 3 code designed to work with Flex version 2 or higher from Adobe. The runtime binary libraries are all compiled with the Flex 3 SDK 3 Beta 2.

To use generated code, you'll need to include ActionScript runtime package antlr3.swc in your library path. There are no other dependencies beyond the standard Flex libraries.

...

Reference documentation for the runtime package can be found at http://www.antlr.org/api/ActionScript/. Note: need to upload ActionScript HTML docs...

Actions

This target currently supports the action scopes @lexer, @parser and @treeparser for global actions. The following action names are known:

...