Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Haxe - The Cross-Platform Toolkit
Haxe OCaml Java C# C++ Shell
Pull request Compare This branch is 52 commits ahead, 2413 commits behind HaxeFoundation:development.

...

latest commit 118496f0ae
@ralcr authored
Failed to load latest commit information.
extra Delete the duplicated space
libs @ f8517be update libs
std fixes
tests add haxe.rtti.Rtti so we have something resembling an API (also add t…
.gitattributes LF normalization
.gitignore readme
.gitmodules added haxelib repo in extra/haxelib_src (close #2258)
.travis.yml [TravisCI] mult-os fallback
Makefile mass replace objc with swift
Makefile.win remove 2>/dev/null from makefile kill (does not work for me)
README.md few more fixes
ast.ml refactorings
build.sh mass replace objc with swift
codegen.ml [js] disallow types that "contain" Class<T> as Map key (see #2479)
common.ml refactorings
dce.ml [js] disallow types that "contain" Class<T> as Map key (see #2479)
filters.ml add toplevel completion, resolve positions for position/usage complet…
genas3.ml (As3) respect __arguments__
gencommon.ml [cs] respect core_api_serialize : enums.
gencpp.ml [cpp] infer TEnumParameter enum from the field because the expression…
gencs.ml Merge remote-tracking branch 'remotes/upstream/development' into brid…
genjava.ml [java] always copy resources, even if haxe.Resources is not used
genjs.ml [js] Add "require" to pseudo-keywords list so a local var with the sa…
genneko.ml add Common.mkdir_from_path and use it to generate neko output directory
genobjc.ml fixes
genphp.ml (Php) unset loop variable of TFor to avoid reference passing issues (…
genpy.ml support Array @:runtime fields at runtime (closes #3071)
genswf.ml add -D swf_use_doabc
genswf8.ml (Flash8) fix TEnumParameter (closes #2728)
genswf9.ml [flash9] check both original and @:getter/@:setter name to determine …
genswift.ml ...
genxml.ml Revert "generate Void->Void correctly"
haxe.hxproj flash12 API sync
interp.ml Show "proper" error message in Context.parse* functions when invalid …
lexer.mll add @:bridgeProperties, which creates native property bridges for all…
main.ml ...
matcher.ml instances are infinite sets (see #3031)
optimizer.ml detect out-of-bounds array access and cancel inlining (closes #2999)
parser.ml Merge remote-tracking branch 'remotes/upstream/development' into brid…
type.ml properly recurse when dealing with abstract variance (closes #3063)
typecore.ml fix silly field suggestions on enum instances (see #2939)
typeload.ml [typeload] Add field name to error messages so macro errors can be de…
typer.ml consider abstracts as a with_type for structure declarations only if …

README.md

Haxe logo

Swift target for Haxe language

Haxe is an open source toolkit that allows you to easily build cross-platform tools and applications that target many mainstream platforms. The Haxe toolkit includes:

Building from sources

  1. Clone the repository using git. Be sure to initialize and fetch the submodules.

    git clone git@github.com:ralcr/haxe.git
    cd haxe
    git submodule init
    git submodule update
    
  2. You now need to hardcode the path to the new std lib. In main.ml file at line 810 change the first path to match yours:

    com.class_path <- ["/Users/Cristi/Documents/haxecompiler/haxe/std/";"";"/"]
    
  3. Build Haxe with:

    make haxe
    
  4. Or build Haxe and the tools with:

    make
    
  5. On Mac you can run the build.sh script that will compile Haxe and will build the demos as well:

    ./build.sh
    
  6. If something is not working run first:

    make clean
    make
    

Getting started with iOS

The starting point of your app should look like this, everything else is ignored:

public static function main() {
    return new UIApplicationMain ( AppDelegate );
}

Where the AppDelegate.hx conforms with the UIApplicationDelegate. This is the main method of your app, you should put the code before returning.

class AppDelegate extends UIResponder implements UIApplicationDelegate {
    public function application (application:UIApplication, didFinishLaunchingWithOptions:NSDictionary) :Bool {
        // See the demos from hxcocoa lib please
        return true;
    }
}

In case i forget this is how i merge the HF/haxe repository in my local fork

git fetch upstream
git merge upstream/development
Something went wrong with that request. Please try again.