MoonScript compiled to JavaScript with Emscripten
JavaScript CoffeeScript CSS HTML C Makefile Shell
Latest commit 25d7f7e Sep 28, 2016 @leafo committed on GitHub Merge pull request #1 from retroverse/patch-1
Small typo fixed
Failed to load latest commit information.
codemirror2 added missing keywords, removed console statement Dec 15, 2011
examples error handling and examples Oct 15, 2011
fonts add fonts Dec 9, 2015
img misc stuff for deploy Dec 10, 2015
moonscript @ 187bac5
old clear out old code Dec 7, 2015
.gitignore add highlighter Dec 10, 2015
Makefile add deploy command Dec 10, 2015 Small typo fixed Sep 28, 2016
Tupfile add autoprefixer Dec 10, 2015 style updates Dec 10, 2015 misc stuff for deploy Dec 10, 2015
index.html misc stuff for deploy Dec 10, 2015
moonscript.c add run moonscript Dec 10, 2015
moonscript.js rebuild 0.5.0 Sep 26, 2016
moonscript.js.mem rebuild 0.5.0 Sep 26, 2016
package.json add package.json Dec 7, 2015
style.scss add run moonscript Dec 10, 2015

MoonScript for JavaScript

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


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