Skip to main content

Crate hara_compiler

Crate hara_compiler 

Source
Expand description

Full Hara compilation surface, kept outside VM-only deployments.

Structs§

CompileError
A compile-time failure with source context.
Program
A compiled program: a constant pool plus function prototypes.

Enums§

Value

Functions§

compile_bytecode
compile_halc_module
Lowers decoded HALC directly into bytecode while preserving its canonical schema graph in the resulting program. The module’s ns declaration is loader configuration rather than executable code and is omitted here.
compile_source
Compiles source text into a validated program. Multiple top-level forms compile as an implicit do. Without a namespace registry the program must be closed: only the names it declares itself are visible as globals (issue #223).
compile_source_with
Compiles against a caller’s namespace registry: registry vars (std.foundation and anything already interned) are visible to the two-phase global check, exactly as they will resolve at execution time through execute_program_with_globals (issue #223).