I am trying to port the Nape physics engine (written in Haxe) to a language not supported by Haxe (Xojo). Now I don't understand Haxe but I am comfortable in Python. I'm trying to convert the mass of .hx files to python source files so I can then translate them to Xojo.
I have the Nape .hx source files (from haxelib) and have installed the haxe command line tool.
I have tried multiple permutations to try to convert the .hx files to Python files but am having no success. I have tried the following:
haxe -cp <directory containing some .hx files> -python <output directory>
That just outputs help from the haxe tool.
haxe <directory containing .hx files> -python <output directory>
That throws:
Error: Could not process argument [directory] Class name must start with uppercase character
I've tried just processing one .hx file:
haxe <.hx file> -python <output directory>
Error: Could not process argument [myfile.hx] empty part
Any ideas what I'm doing wrong? I thought the whole point of Haxe was to be able to easily convert to different languages?