l4u/l4u_type
let assert [Scope(tvars), ..] = closure_env.scopes
Types
pub type Description {
Description(name: String, text: String)
}
Constructors
-
Description(name: String, text: String)
pub type Env {
Env(
info: Info,
pdic: PDic,
local_vars: Dict(String, Expr),
a_binding: Dict(String, Expr),
scopes: List(Scope),
opts: EnvOptions,
)
}
Constructors
-
Env( info: Info, pdic: PDic, local_vars: Dict(String, Expr), a_binding: Dict(String, Expr), scopes: List(Scope), opts: EnvOptions, )
pub type EnvOptions {
EnvOptions(verbose: Bool, trace: Bool)
}
Constructors
-
EnvOptions(verbose: Bool, trace: Bool)
pub type ErrorEx {
ErrorEx2(msg: String, detail: Dynamic)
}
Constructors
-
ErrorEx2(msg: String, detail: Dynamic)
pub type Expr {
PRINTABLE(Expr)
UNDEFINED
NIL
TRUE
FALSE
DELIMITER
WithEnv(Expr, Env)
LocalContinuation(List(Expr), Env, Env)
Continuation(List(Expr), Env)
ATOM(Ref)
INT(Int)
FLOAT(Float)
STRING(String)
SYMBOL(String)
ExVAR(String, String)
KEYWORD(String)
LIST(List(Expr))
VECTOR(List(Expr))
DICT(List(Expr))
BIF(Description, fn(List(Expr), Env) -> Expr)
BISPFORM(Description, fn(List(Expr), Env) -> Expr)
CLOSURE(Description, List(String), List(Expr), Env)
MACRO(Description, List(String), List(Expr), Env)
WithMeta(Expr, Expr)
NativeValue(String, Dynamic)
NativeFunction(String, Dynamic)
ReplCommand(String, Expr)
CustomType(String, Expr)
CustomTypeDef(String, Expr)
}
Constructors
-
PRINTABLE(Expr)
-
UNDEFINED
-
NIL
-
TRUE
-
FALSE
-
DELIMITER
-
WithEnv(Expr, Env)
-
LocalContinuation(List(Expr), Env, Env)
-
Continuation(List(Expr), Env)
-
ATOM(Ref)
-
INT(Int)
-
FLOAT(Float)
-
STRING(String)
-
SYMBOL(String)
-
ExVAR(String, String)
-
KEYWORD(String)
-
LIST(List(Expr))
-
VECTOR(List(Expr))
-
DICT(List(Expr))
-
BIF(Description, fn(List(Expr), Env) -> Expr)
-
BISPFORM(Description, fn(List(Expr), Env) -> Expr)
-
CLOSURE(Description, List(String), List(Expr), Env)
-
MACRO(Description, List(String), List(Expr), Env)
-
WithMeta(Expr, Expr)
-
NativeValue(String, Dynamic)
-
NativeFunction(String, Dynamic)
-
ReplCommand(String, Expr)
-
CustomType(String, Expr)
-
CustomTypeDef(String, Expr)
pub type Info {
Info(name: String, level: Int)
}
Constructors
-
Info(name: String, level: Int)
Functions
pub fn box_l4u_custom_type(name: String, x: Expr) -> Expr
pub fn box_l4u_custom_type_def(name: String, x: Expr) -> Expr
pub fn box_l4u_dict(x: List(Expr)) -> Expr
pub fn box_l4u_float(x: Float) -> Expr
pub fn box_l4u_int(x: Int) -> Expr
pub fn box_l4u_keyword(x: String) -> Expr
pub fn box_l4u_list(x: List(Expr)) -> Expr
pub fn box_l4u_native_function(name: String, x: Dynamic) -> Expr
pub fn box_l4u_native_value(name: String, x: Dynamic) -> Expr
pub fn box_l4u_ok(x: a) -> Result(a, b)
pub fn box_l4u_string(x: String) -> Expr
pub fn box_l4u_symbol(x: String) -> Expr
pub fn box_l4u_vector(x: List(Expr)) -> Expr
pub fn native_false() -> a
pub fn native_nil() -> a
pub fn native_true() -> a
pub fn native_undefined() -> a
pub fn to_native_dictionary(xs: List(a)) -> b
pub fn unsafe_corece(value: a) -> b