This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Home
as3tohaxe
An Actionscript 3 to haXe converter written in Haskell
It’s not a complete translator. But the idea is to remove a lot of tedium when converting source code.
Check out my blog for progress updates and more.
There is a google group which has Mac and Windows binaries for download: http://groups.google.com/group/as3tohaxe
Translation Abilities
- datatypes
- function signatures
- “as” casting to “cast()”, “is” testing to “Std.is()”
- member variable initialization moved to constructor
- get and set functions are renamed and properties created
- for(;;) loops to for iterators and while loops
- package declarations
- constructor declarations
- SWF metadata tag to hxml file, comments out other metadata tags
Compiling
To compile the converter you’ll need a copy of ghc and parsec3 installed. I also use Data.Generics which is not Haskell 98. Check out SYB/Scrap Your Boilerplate for info.
Compile as3tohaxe.hs with ghc --make -XDeriveDataTypeable as3tohaxe.hs.
Then run as3tohaxe [dir | file].
The output will appear in the directory hx_output.






