Skip to content

jacobalbano/Slang3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slang is an experimental stack-based scripting language for Haxe.

Usage

var source:String = getSource(); // load Slang code into a string

var engine = new ScriptEngine();
var scope = engine.compile(source);
scope.execute();

Example code

func greet (name) {
    print string:format "Hello, {0}!" [name]
}

greet "World"

Installation

Haxe

Slang is on Haxelib:

haxelib install slang

Actionscript

If you want to use Slang in a Flash project, you can download the .swc from the downloads page. Before a SWC built with Haxe can be used, the Haxe subsystem must be initialized:

haxe.initSwc(MovieClip(root));

Javascript

Download the .js file in the downloads page and do javascript things with it. I haven't tested it at all.

Neko

I only use Neko as a Haxe target, so I also haven't tested out the neko build. You can get the .ndll file from the downloads page and do with it what you will.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published