adireddy / js2hx

Convert JSDoc documented code to Haxe externs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converts JSDoc annotated JavaScript files to Haxe externs. This is not a general purpose converter. It was built to convert the Phaser library specifically, but it may be general enough to convert other libraries as well. Really the only requirement is that every JS file corresponds to a class and the folder structure maps directly to package structure. Built for Object Oriented structuring.

Requires DOX: https://github.com/visionmedia/dox

Compile and run:

	neko js2hx INDIR OUTDIR

Example:

	neko js2hx path/to/phaser path/to/out

About

Convert JSDoc documented code to Haxe externs.