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.
LiveCodes runs Lua in the browser using Fengari.
Fengari (Moon in greek) is the Lua VM written in JavaScript. It uses JavaScript's garbage collector so that interoperability with the DOM is non-leaky.
Note
Usage
LiveCodes runs Lua in the browser. JavaScript interoperability and DOM access is achieved using "js"
module.
This example demonstrates usage, JavaScript interoperability and DOM access:
Language Info
Name
lua
Extension
.lua
Editor
script
Compiler
Version
Fengari v0.1.4
Code Formatting
Using lua-fmt
.
Starter Template
https://livecodes.io/?template=lua
Links
- Lua
- Lua documentation
- Fengari
- lua-wasm in LiveCodes