The MoonScript Programming Language

Published on 01 November 2018 (Updated: 05 November 2018)

The MoonScript Programming Language

According to MoonScript.org, MoonScript is a dynamic scripting language that compiles into Lua. What is Lua? Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

Back to MoonScript, it gives you the full power of Lua while providing a clean easy syntax without the keyword noise typically seen in a Lua script. MoonScript can either be compiled into Lua, or it can be dynamically compiled and run using the moonloader.

How did MoonScript start you may ask? Well, its author Leaf Corcoran built MoonScript, started building games with MoonScript, added them to itch.io—an online platform for indie games which is also built with MoonScript—then generalized the code base to a general purpose web framework with both MoonScript and Lua APIs called Lapis.1

Articles


References

  1. B. Mohamed, “Hello World in MoonScript,” The Renegade Coder, 02-Sep-2018. [Online]. Available: https://therenegadecoder.com/code/hello-world-in-moonscript/. [Accessed: 31-Oct-2018].