Welcome to HaxeD

Aims to compile Haxe code to the D Programming Language (version 2.x).

License: zlib/libpng

OS: Cross-platform. Tested on Windows and Linux.

Status

HaxeD is still in its very early stages.

  • The Haxe preprocessor, HaxePreD, is implemented and usable as either a standalone program or a D library.
  • A GOLD/Goldie grammar for the Haxe language (albeit with a few limitations) is written and available here.

HaxeD itself currently does the following (as either a standalone program or a rudimentary D library):

  • Preprocesses and parse given Haxe sources.
  • Automatically does the same for all imported Haxe modules.
  • Outputs a D module for each Haxe module.
  • Outputs a D class for each Haxe class.
  • Converts class member variables (except for initializers and properties).
  • Partially converts class member functions (no generics or param initializers yet, and only a few statements/expressions are converted).
  • Statements and expressions that are not yet supported are not silently ignored: They result in a warning message and an emitted static assert(false, ...);.

HaxeD currently requires at least DMD 2.055 (but 2.057 won't work due to DMD Issue #7375).

Message Board and Issue Tracking

...are right here on DSource.

Source Repository

The source repository is on BitBucket:

https://bitbucket.org/Abscissa/haxed

Download

Via Mercurial (be aware, it will likely switch to Git soon):

hg clone https://bitbucket.org/Abscissa/haxed

You'll also need the latest masters of Goldie and SemiTwistDTools (HaxeD is in such an early, quickly-changing state that the latest official Goldie release may not always be new enough):

On Windows:

git clone https://bitbucket.org/Abscissa/goldie Goldie
git clone https://bitbucket.org/Abscissa/semitwistdtools SemiTwistDTools
set PATH=%CD%\Goldie\bin;%CD%\SemiTwistDTools\bin;%PATH%
cd SemiTwistDTools
buildAll
cd ../goldie
semitwist-stbuild all
cd ..

Linux is the same as Windows above, except use ./buildAll and set the PATH like this:

PATH=`pwd`/Goldie/bin:`pwd`/SemiTwistDTools/bin:$PATH

Once you've installed Goldie and SemiTwist D Tools as above, you can download and build HaxeD and HaxePreD:

hg clone https://bitbucket.org/Abscissa/haxed
cd haxed
semitwist-stbuild all