Introduce JumpLabels instead of manually correct jump positions

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-11 15:50:05 +01:00
parent e64256b65f
commit 7182024342
12 changed files with 485 additions and 381 deletions

View file

@ -6,6 +6,7 @@ use serde::Serialize;
use thiserror::Error;
use crate::emit::Instruction;
use crate::emit::VMInstructions;
use crate::input::NomoInput;
pub mod ast;
@ -84,7 +85,7 @@ impl Nomo {
}
struct Template {
instructions: Vec<Instruction>,
instructions: VMInstructions,
}
pub struct Context {