hongweifei/lua/src/core does not have a README file
pub(all) struct Frame {
pc : Int
func_slot : Int
base : Int
nargs : Int
ret_slot : Int
nres_wanted : Int
top : Int
closure : LClosure?
builtin : LBuiltin?
varargs : Array[Value]
prots : Array[Cont]
tbc : Array[Int]
tailcalls : Int
patched_builtin : Int
hook_frame : Bool
trap : Bool
mm_name : String
ftransfer : Int
ntransfer : Int
protect_frame : Bool
saved_errfunc : Value
pending_finish : Int
pending_slot : Int
pending_top : Int
pending_closes : Array[Frame]?
pending_err : Value
pending_room : Int
pending_result : (Int, Int)?
}pub(all) struct Instr {
op : Int
a : Int
b : Int
c : Int
}pub(all) enum IntConv {
ConvInt(Int64)
ConvNoInt
}pub(all) struct LFile {
handle : Int64
closed : Bool
standard : Bool
popened : Bool
name : String
}pub(all) struct LStr {
bytes : Bytes
hash : Int
id : Int
}pub(all) struct LThread {
stack : Array[Value]
frames : Array[Frame]
open_upvals : Array[LUpval]
meta : LTable?
status : Int
ny : Int
ccalls : Int
func : Value
started : Bool
dead_error : Value
resume_vals : Array[Value]?
hook_fn : Value
hook_mask : Int
hook_count : Int
hook_base_count : Int
hook_running : Bool
hook_old_pc : Int
mm_pending : String
errfunc : Value
in_errfunc : Bool
fresh_error : Bool
id : Int
mark_epoch : Int
}pub(all) struct LUserData {
meta : LTable?
kind : UserDataKind
uservalues : Array[Value]
id : Int
light : Bool
mark_epoch : Int
}pub(all) struct LuaState {
globals : LTable
registry : LTable
type_metas : Array[LTable?]
main_thread : LThread
current_thread : LThread
native_depth : Int
error_handler : Value
memory_units : Int
memory_limit : Int
in_error_handling : Bool
gc_running : Bool
gc_finalizing : Bool
gc_mode : String
gc_pause : Int
gc_stepmul : Int
warn_enabled : Bool
last_error : Bytes
mm_name : String
slot_x : Int
slot_y : Int
err_room : Int
gc_epoch : Int
weak_tables : Array[LTable]
finalizers : Array[Value]
gc_threshold : Int
gc_debt : Int
gc_units_done : Int
gc_marked : Int
gc_marked_size : Int
gc_counted_strings : Map[Int, Unit]
gc_object_base : Int
gc_string_base : Int
}pub struct ObjName {
kind : String
name : String
}let BK_PAIRS : Intlet BK_PCALL : Intlet CCALLS_LIMIT_LATE : Intlet GCPARAM_ADJ : Intlet GC_MAX_DEBT : Int64let GC_STEP : Intlet GC_STEP_SHIFT : Intlet MAX_LUA_FRAMES : Intlet MAX_NATIVE_DEPTH : Intlet MAX_REGS : Intlet MEMORY_LIMIT : Intlet MIN_HOST_STACK : Intlet OP_CLOSE : Intlet OP_FORLOOP : Intlet OP_FORPREP : Intlet OP_RETURN : Intlet RK_OFFSET : Intlet WORK2MEM : Intfn binop_metamethod(op : Int) -> Stringfn binop_text(op : Int) -> Stringfn byte_of(n : Int) -> Bytefn bytes_add(a : Bytes, b : String) -> Bytesfn bytes_equal_range(a : Bytes, ai : Int, b : Bytes, bi : Int, len : Int) -> Boolfn bytes_index_of(b : Bytes, from : Int, len : Int, byte : Int) -> Intfn bytes_slice(b : Bytes, start : Int, len : Int) -> Bytesfn charge_object_bytes(n : Int) -> Unitfn check_decimal_float(s : Bytes) -> Boolfn check_hex_float(s : Bytes) -> Boolfn double_to_g14(d : Double) -> Bytesfn errno_message() -> Bytesfn float_ceil_to_int64(d : Double) -> Int64?fn float_is_int64(d : Double) -> Boolfn float_mod(a : Double, b : Double) -> Doublefn float_to_int64(d : Double) -> Int64fn flush_stdout() -> Unitfn format_with_cstr(v : Bytes, fmt : Bytes) -> Bytesfn format_with_double(v : Double, fmt : Bytes) -> Bytesfn format_with_int(v : Int, fmt : Bytes) -> Bytesfn format_with_int64(v : Int64, fmt : Bytes) -> Bytesfn format_with_uint64(v : UInt64, fmt : Bytes) -> Bytesfn hex_address(n : Int64) -> Stringfn hex_float_value(s : Bytes) -> Doublefn host_ctype(which : Int, c : Int) -> Intfn host_exit(code : Int) -> Unitfn host_stack_left() -> Intfn int64_to_bytes(v : Int64) -> Bytesfn int_equals_float(a : Int64, b : Double) -> Boolfn int_fits_double(a : Int64) -> Boolfn int_lt_float(i : Int64, f : Double) -> Boolfn is_no_source(source : Bytes) -> Boolfn locale_decpoint() -> Intfn looks_like_integer_text(b : Bytes) -> Boolfn lstrcmp(a : Bytes, b : Bytes) -> Intlet max_before_mul10 : UInt64fn metamethod_info(tm : String) -> Stringfn read_stdin_all() -> Bytesfn read_whole_file(path : Bytes) -> Result[Bytes, Bytes]fn scan_float(s : Bytes) -> Double?fn scan_integer(s : Bytes) -> Int64?fn source_for_message(source : Bytes) -> Stringlet src_none : Intfn str_is_shared(len : Int) -> Boolfn text_of(b : Bytes) -> Stringfn utf8_ident_size(c0 : Int, c1 : Int, c2 : Int, c3 : Int) -> Intfn write_whole_file(path : Bytes, data : Bytes) -> Result[Unit, Bytes]