QuickBEAM.VM.Compiler.Lowering.Builder (QuickBEAM v0.10.9)

Copy Markdown View Source

Erlang abstract-format helpers: variable, literal, call, and case-clause constructors for the lowering pass.

Summary

Functions

Returns the generated Erlang function name for a bytecode block.

Builds a boolean case expression with false and true branches.

Builds an Erlang abstract-format integer literal.

Builds an Erlang abstract-format local call expression.

Builds an Erlang abstract-format map expression.

Returns generated Erlang variables for all local slots.

Builds a guard-style expression checking undefined or null.

Functions

atom(value)

atom_name(map, atom_idx)

block_name(idx)

Returns the generated Erlang function name for a bytecode block.

branch_case(expr, false_body, true_body)

Builds a boolean case expression with false and true branches.

branch_condition(expr, arg2)

capture_name(idx, n)

capture_var(idx)

capture_vars(count)

compiler_call(fun, args)

ctx_var()

integer(value)

Builds an Erlang abstract-format integer literal.

list_expr(list)

literal(value)

local_call(fun, args)

Builds an Erlang abstract-format local call expression.

map_expr(entries)

Builds an Erlang abstract-format map expression.

match(left, right)

remote_call(mod, fun, args)

slot_name(idx, n)

slot_var(idx)

slot_vars(count)

Returns generated Erlang variables for all local slots.

stack_var(idx)

stack_vars(count)

temp_name(n)

throw_js(expr)

try_catch_expr(try_body, err_var, catch_body)

tuple_element(tuple, index)

tuple_expr(values)

undefined_or_null_expr(expr)

Builds a guard-style expression checking undefined or null.

var(name)