lua_ir/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
mod builtin;
mod context;
mod error;
mod function;
mod instruction;
mod luaval;
mod number;
mod string;
mod table;
mod vm;

/// The type of a label in the program.
/// It is actually `usize`,
/// we just use this type alias to make the code more readable,
/// and distinguish it from other `usize` like index of instructions.
type LabelType = usize;

pub use lua_semantics::FloatType;
pub use lua_semantics::IntType;

pub use function::LuaFunction;
pub use function::LuaFunctionLua;
/// Type for any Lua value.
pub use luaval::LuaValue;
/// Type for Lua number.
pub use number::LuaNumber;
/// Type for Lua table.
pub use table::LuaTable;

use context::Context;
pub use error::RuntimeError;
pub use instruction::Instruction;
pub use string::LuaString;
use vm::Chunk;
pub use vm::LuaEnv;
pub use vm::LuaThread;
pub use vm::ThreadStatus;