Skip to main content

Crate slew

Crate slew 

Source
Expand description

slew — a suspendable Lua 5.4 interpreter.

Scripts are compiled once and then driven by the embedder with explicit fuel budgets: Execution::step(fuel) runs at most fuel units of work and suspends, resumable later. See DESIGN.md.

Re-exports§

pub use value::Value;
pub use vm::Chunk;
pub use vm::Error;
pub use vm::Execution;
pub use vm::ExecutionId;
pub use vm::Lua;
pub use vm::NativeContext;
pub use vm::NativeFn;
pub use vm::NativeOutcome;
pub use vm::NativeWait;
pub use vm::RuntimeError;
pub use vm::Step;
pub use vm::SuspendableNativeFn;
pub use host::DateParts;
pub use host::Host;
pub use host::HostError;
pub use host::HostObject;
pub use host::SeekWhence;
pub use host::StdHost;

Modules§

ast
AST for the full Lua 5.4 grammar.
bytecode
Register-based bytecode.
compiler
AST → bytecode compiler.
fs
Filesystem adapter for Lua::set_fs_file_reader.
host
Host capability seam.
lexer
Lua 5.4 lexer. Operates on bytes: Lua source and strings are byte sequences, not necessarily valid UTF-8.
parser
Recursive-descent parser for the full Lua 5.4 grammar.
pattern
Lua 5.4 pattern matching (a port of lstrlib.c’s matcher).
stdlib
The standard library: base functions, coroutine, string (with the pattern engine), table, math, and utf8.
value
Values, interned strings, and tables.
vm
The stackless VM and the public embedding API.