Skip to main content

Crate runar_compiler_rust

Crate runar_compiler_rust 

Source
Expand description

Rúnar Compiler (Rust) — library root.

Full compilation pipeline:

  • IR consumer mode: accepts ANF IR JSON, emits Bitcoin Script.
  • Source mode: compiles .runar.ts source files through all passes.

Modules§

artifact
Rúnar Artifact – the final compiled output of a Rúnar compiler.
codegen
Code generation modules.
frontend
Frontend passes for compiling .runar.ts source files.
ir
ANF IR types and loader.

Functions§

compile_from_ir
Compile from an ANF IR JSON file on disk.
compile_from_ir_str
Compile from an ANF IR JSON string.
compile_from_program
Compile a parsed ANF program to a Rúnar artifact.
compile_from_source
Compile from a .runar.ts source file on disk.
compile_from_source_str
Compile from a .runar.ts source string.
compile_source_str_to_ir
Compile from a .runar.ts source string to ANF IR only (passes 1-4).
compile_source_to_ir
Compile from a .runar.ts source file to ANF IR only (passes 1-4).