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.tssource 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.tssource files. - ir
- ANF IR types and loader.
Structs§
- Compile
Options - Options controlling the compilation pipeline.
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.tssource file on disk. - compile_
from_ source_ str - Compile from a
.runar.tssource string. - compile_
from_ source_ str_ with_ options - Compile from a
.runar.tssource string, with options. - compile_
from_ source_ with_ options - Compile from a
.runar.tssource file on disk, with options. - compile_
source_ str_ to_ ir - Compile from a
.runar.tssource string to ANF IR only (passes 1-4). - compile_
source_ str_ to_ ir_ with_ options - Compile from a
.runar.tssource string to ANF IR only (passes 1-4), with options. - compile_
source_ to_ ir - Compile from a
.runar.tssource file to ANF IR only (passes 1-4). - compile_
source_ to_ ir_ with_ options - Compile from a
.runar.tssource 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.