https://github.com/leafo/moonscript-javascript
MoonScript compiled to JavaScript with Emscripten
https://github.com/leafo/moonscript-javascript
Last synced: 26 days ago
JSON representation
MoonScript compiled to JavaScript with Emscripten
- Host: GitHub
- URL: https://github.com/leafo/moonscript-javascript
- Owner: leafo
- Created: 2011-10-08T07:59:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T12:12:33.000Z (over 6 years ago)
- Last Synced: 2025-04-20T17:40:03.970Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://moonscript.org/compiler
- Size: 1.53 MB
- Stars: 40
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MoonScript for JavaScript
This is a version of [MoonScript](http://moonscript.org) that has been compiled to
JavaScript using [Emscripten](http://emscripten.org).## 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 .