Actionscript 3 to haXe!

Posted on October 1, 2008. Filed under: Uncategorized | Tags: , , , |

So after a couple of months of study, I finally put together my first Haskell project, as3tohaxe, an Actionscript 3 to haXe converter. And now it’s up on github for everyone. The code is a mess because I’m still green with Haskell (and haXe!). It’s just a start, but I hope to continually improve the translator as I work on my haXe projects.

Here’s what it can do so far:

  • converts basic types int to Int
  • cleans up the package braces
  • renames the constructor to new or main
  • converts default arguments
  • moves member variable initializers into the constructor
  • converts access control attributes (e.g. protected to public)
  • and more eventually

Parsing expressions is on the todo list.


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

2 Responses to “Actionscript 3 to haXe!”

RSS Feed for Blazing Bytes Comments RSS Feed

what is the best place to discuss as3tohaxe issues?

hey ben,

I’ve created this google group,, and sent you an invitation.


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: