Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.31 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.31 KB

About

A tool used to translate AS3 code into Haxe code, written in TXL (http://www.txl.ca) and Haskell. Developed by Ladace (http://godhatesnerds.net)

This is NOT a complete converter, but it can reduce much work you have to do when translating AS3 code into Haxe.

To convert AS3 into Haxe completely, the next phase is adding semantic analysis of AS, which is complicated and difficult.

#Features

  • Transformation based on grammar has been basically completed.
  • Expand the "import xxx.*;" declaration automatically. However, some import may be missed, and should be added manually.

#Note

  • The input AS3 code is required to have ';' following each statement. If not, the transformation will fail.
  • The Function and Class type are translated into Dynamic in Haxe.

#Build

Windows users can use the binary version "as2hx.exe" directly.

#Usage as2hx [file|directory]

The output code will be placed in the folder "hxOutput/". If a directory is specified, all AS files under the directory will be processed recursively.

#P.S. You can find previous version here (https://github.com/ladace/NerdLab/tree/master/libraries/as2hx).