RosettaCodeData/Lang/MoonScript/00-LANG.txt

12 lines
960 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{stub}}
{{language
|site=http://moonscript.org/}}
MoonScript is a dynamic scripting language that compiles into Lua. It gives you the power of one of the fastest scripting languages combined with a rich set of features.
MoonScript can either be compiled into [[Lua]] and run at a later time, or it can be dynamically compiled and run using the moonloader. Its as simple as require "moonscript" in order to have Lua understand how to load and run any MoonScript file.
Because it compiles right into Lua code, it is completely compatible with alternative Lua implementations like LuaJIT, and it is also compatible with all existing Lua code and libraries.
The command line tools also let you run MoonScript directly from the command line, like any first-class scripting language.
A comprehensive overview of the language can be found in the [http://moonscript.org/reference/ reference manual], the rest of this page serves as an overview of the language.