Explorer

core.expression

description
Definy AST expression type (self-describing AST)
type
Type
expression
Union{
  #type_number,
  #type_float,
  #type_string,
  #type_boolean,
  #type_list(Record{item_type: @core.expression}),
  #type_function(Record{parameters: List<Record{name: String, type: @core.expression}>, return_type: @core.expression}),
  #type_record(List<Record{key: String, value: @core.expression}>),
  #type_union(List<Record{tag: String, payload_type: Union{#none, #some(@core.expression)}}>),
  #number(Number),
  #float(Record{mantissa: Number, exponent: Number}),
  #string(String),
  #boolean(Boolean),
  #list(List<@core.expression>),
  #call(Record{function: @core.callee, arguments: List<Record{name: String, value: @core.expression}>}),
  #variable(Record{variable_id: Number}),
  #function(Record{parameters: List<Record{parameter_id: Number, parameter_name: String}>, body: @core.expression}),
  #record(List<Record{key: String, value: @core.expression}>),
  #record_get(Record{record: @core.expression, key: String}),
  #variant(Record{
    tag: String,
    payload: Union{#none, #some(@core.expression)},
    type_part: Union{#none, #some(String)}
  }),
  #match(Record{target: @core.expression, arms: List<@core.match-arm>}),
  #part_reference(Record{part_definition_event_hash: String}),
  #let(Record{variable_id: Number, variable_name: String, value: @core.expression, body: @core.expression}),
  #hole(Record{probe: Boolean}),
  #builtin(String),
  #quote(@core.expression),
  #secret(Record{id: String, label: String, allowed_url_prefixes: List<String>}),
  #type_secret,
  #type_type,
  #type_code(Record{value_type: @core.expression}),
  #type_parameter(String)
}
visibility
public
core.expression (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: YHjH0OEPWoyoUzPGGnQoTDYG0PZgln3BwurT-kYQrT8
content hash: nTFhg7HUSVkRPQCL-cimzyAZT1CST4QhQER4Vu1x5Ho