From 1456d7073742e39985aa093bdbc152f4f9cd07a4 Mon Sep 17 00:00:00 2001 From: kitty Date: Mon, 23 Mar 2026 18:51:19 +1100 Subject: value to +to -to --- sanctuary.fs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sanctuary.fs') diff --git a/sanctuary.fs b/sanctuary.fs index ff4a266..6bdfbfc 100644 --- a/sanctuary.fs +++ b/sanctuary.fs @@ -44,6 +44,12 @@ : constant create , does> @ ; : variable create 1 cells allot ; +: value parse-name (header) latest ! postpone literal + [ hex ] c3 c, [ decimal ] ; \ c3 = RET +: to ' ( word ) 6 + state @ if postpone literal postpone ! else ! then ; immediate +: +to ' ( word ) 6 + state @ if postpone literal postpone +! else +! then ; immediate +: -to ' ( word ) 6 + state @ if postpone literal postpone -! else -! then ; immediate + 0 constant false -1 constant true bye -- cgit v1.2.3