API Reference Lua v#1.0.1

View Source

Modules

Lua

Embed a sandboxed Lua 5.3 scripting runtime in your Elixir application — no NIFs, no C, no Erlang runtime dependency.

Defines the Behaviour for defining a Lua API

A pre-compiled chunk of Lua code that can be executed at a future point in time

Raised when Lua source cannot be lexed, parsed, or compiled.

Structured, wire-safe error reporting for the Lua parser.

Raised when a Lua program fails at runtime — bad argument types, arithmetic on a non-number, indexing a nil, an explicit error() call from Lua, or any other dynamic failure inside the VM.

In Lua, tables are the fundamental datastructure, which are used both as associative arrays (maps), and arrays (lists).

Mix Tasks

Evaluates a Lua source file in a fresh Lua.new() VM and prints any return values.