Add PAGE word, fix web REPL init code, update deps

Implement PAGE (Facility word set) as IR primitive emitting form feed.
Web REPL clears output div on form feed, CLI REPL sends ANSI clear.
Fix init code panel: use default textarea content instead of placeholder
so init code actually executes on first visit. Update wasm-pack 0.10→0.14
and refresh Cargo.lock to latest compatible versions.
This commit is contained in:
2026-04-13 11:21:11 +02:00
parent 3b65b48640
commit 24e808935f
5 changed files with 51 additions and 28 deletions
+1
View File
@@ -2364,6 +2364,7 @@ impl<R: Runtime> ForthVM<R> {
// -- I/O --
self.register_primitive("EMIT", false, vec![IrOp::Emit])?;
self.register_primitive("CR", false, vec![IrOp::Cr])?;
self.register_primitive("PAGE", false, vec![IrOp::PushI32(0x0C), IrOp::Emit])?;
// -- Constants --
self.register_primitive("TRUE", false, vec![IrOp::PushI32(-1)])?;