The Haxe compiler source files are hosted on GitHub under the HaxeFoundation account:
Since the compiler sources changes over time, the documentation on how to build the compiler is part of the repository:
This document includes how to set up OCaml, install the dependencies and how to compile the compiler.