MoonScript compiled to JavaScript with Emscripten
JavaScript CoffeeScript CSS HTML C Makefile Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
codemirror2 added missing keywords, removed console statement Dec 15, 2011
examples
fonts add fonts Dec 9, 2015
img
lib
moonscript @ 187bac5
old
.gitignore
.gitmodules
Makefile
README.md Small typo fixed Sep 28, 2016
Tupfile
download.sh
highlight.coffee
index.coffee
index.html misc stuff for deploy Dec 10, 2015
moonscript.c
moonscript.js
moonscript.js.mem
package.json
style.scss
worker_suffix.coffee

README.md

MoonScript for JavaScript

This is a version of MoonScript that has been compiled to JavaScript using Emscripten.

About

The Lua source code of MoonScript is concatenated into a single file which is converted to a header using xxd. This is included in a C file along with Lua and LPeg which are then compiled into LLVM bitcode. Finally the entire thing is linked and fed into Emscripten to create a JavaScript file.

A simple HTML page creates the worker to provide an web interface for compiling and running MoonScript.

Check it out at http://moonscript.org/compiler.