forth: BASE/DECIMAL/HEX/BIN/OCTAL (+9; Hayes 174/590)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 20:40:11 +00:00
parent 35ce18eb97
commit acf9c273a2
8 changed files with 76 additions and 9 deletions

View File

@@ -87,8 +87,7 @@
"actual"
(str hayes-actual))))))))))
(forth-def-prim! state "TESTING" (fn (s) nil))
(forth-def-prim! state "HEX" (fn (s) (dict-set! s "base" 16)))
(forth-def-prim! state "DECIMAL" (fn (s) (dict-set! s "base" 10)))
;; HEX/DECIMAL are real primitives now (runtime.sx) — no stub needed.
state))
(define