Add parse function (requires @:selfCall from latest haxe compiler version)