Feat: UI / UX

This commit is contained in:
2026-02-16 01:22:40 +01:00
parent 23c7abb145
commit 211e71f5a9
37 changed files with 1045 additions and 64 deletions

View File

@@ -637,6 +637,16 @@ impl Forth {
.expect("var_writes taken")
.insert(name, val);
}
Op::SetKeep => {
let name = pop(stack)?;
let name = name.as_str()?.to_string();
let val = stack.last().ok_or("Stack underflow")?.clone();
var_writes_cell
.borrow_mut()
.as_mut()
.expect("var_writes taken")
.insert(name, val);
}
Op::GetContext(name) => {
let val = match *name {