Add using literal loading

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-12 11:31:08 +01:00
parent 8c02dbd672
commit 05c095ccfe
7 changed files with 162 additions and 1 deletions

View file

@ -179,6 +179,13 @@ pub fn execute(vm: &VMInstructions, global_context: &Context) -> Result<String,
scopes.insert_into_scope(value_ident, value);
}
Instruction::LoadLiteralToSlot {
source: _,
value,
slot,
} => {
scopes.insert_into_slot(*slot, value.clone());
}
}
ip += 1;