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.

Structs§

CompileOptions
Options controlling the compilation pipeline.
CompileResult
Rich compilation result that collects ALL diagnostics from ALL passes and returns partial results as they become available.

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_ir_str_with_options
Compile from an ANF IR JSON string, with options.
compile_from_ir_with_options
Compile from an ANF IR JSON file on disk, with options.
compile_from_program
Compile a parsed ANF program to a Rúnar artifact.
compile_from_program_with_options
Compile a parsed ANF program to a Rúnar artifact, with options.
compile_from_source
Compile from a .runar.ts source file on disk.
compile_from_source_str
Compile from a .runar.ts source string.
compile_from_source_str_with_options
Compile from a .runar.ts source string, with options.
compile_from_source_str_with_result
Compile from a source string, collecting ALL diagnostics from ALL passes and returning partial results as they become available.
compile_from_source_with_options
Compile from a .runar.ts source file on disk, with options.
compile_from_source_with_result
Compile from a source file on disk, collecting ALL diagnostics.
compile_source_str_to_ir
Compile from a .runar.ts source string to ANF IR only (passes 1-4).
compile_source_str_to_ir_with_options
Compile from a .runar.ts source string to ANF IR only (passes 1-4), with options.
compile_source_to_ir
Compile from a .runar.ts source file to ANF IR only (passes 1-4).
compile_source_to_ir_with_options
Compile from a .runar.ts source file to ANF IR only (passes 1-4), with options.
frontend_validate
Run only the parse + validate passes on a source string. Returns (errors, warnings). Exposed for testing warnings.