Home > as3tohaxe

as3tohaxe

As3tohaxe is a project mainly written in HASKELL and ACTIONSCRIPT, based on the GPL-3.0 license.

An Actionscript 3 to haXe source converter written in Haskell

as3tohaxe - An Actionscript 3 to haXe source file converter written in Haskell Copyright (C) 2008-2009 Don-Duong Quach

This is NOT a complete converter. It is not possible for haXe to override the getters and setters of native Flash classes (e.g. Sprite), so converting your as3 code to haxe completely is not possible as far as I know.

So I stopped working on the project, but the code and executable may still be useful to someone.

For more info check visit: http://www.github.com/geekrelief/as3tohaxe http://geekrelief.wordpress.com

-- Running -- Type 'as3tohaxe' and a directory or file to convert.
A directory named "hx_output" will be created in the current directory if necessary. The supplied ".as" files will be translated into haxe files and stored there. If the command is run more than once, and pre-existing files will be overwritten.

-- Binary -- Binaries for Mac OSX Leopard and Windows are available under the Files section of the as3tohaxe google group.

-- Compiling -- Requirements

  • The source http://www.github.com/geekrelief/as3tohaxe
  • GHC (6.10.1, 6.8.3) http://www.haskell.org/ghc/
  • Cabal (1.6.0.1) for parsec http://www.haskell.org/cabal/
  • parsec 3 http://hackage.haskell.org/cgi-bin/hackage-scripts/package/parsec

Compile with: ghc --make -XDeriveDataTypeable as3tohaxe.hs or the './build' script

-- License -- This program and its source is GPL licensed. Please read the LICENSE for more details.

Previous:PHPdiapo