Skip to content
/ as2hx Public

A tool translating AS3 code to Haxe, written in TXL and Haskell.

Notifications You must be signed in to change notification settings

zacx-z/as2hx

Repository files navigation

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).

About

A tool translating AS3 code to Haxe, written in TXL and Haskell.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published