summaryrefslogtreecommitdiff
path: root/sanctuary.fs
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-24 14:17:59 +1100
committerkitty <nepeta@canaglie.net>2026-03-24 14:17:59 +1100
commit6819ca743193bb9ae4e32c9c87c98b27d06c0c82 (patch)
treeb44746d48e4fec00241bae78e34bc2f234c32209 /sanctuary.fs
parentae1c341e4ce177a83fa678615103f32677888ed8 (diff)
fix s" also rp sp and emit
Diffstat (limited to 'sanctuary.fs')
-rw-r--r--sanctuary.fs5
1 files changed, 4 insertions, 1 deletions
diff --git a/sanctuary.fs b/sanctuary.fs
index 6bc19e1..2715912 100644
--- a/sanctuary.fs
+++ b/sanctuary.fs
@@ -57,7 +57,7 @@
-1 constant true
: cmove, dup >r here swap cmove r> allot ;
-: s" 1 >in +! [ char " ] literal parse ( a u )
+: s" [ char " ] literal parse ( a u )
branch >mark >r 2dup cmove, nip ( u ) ( R: mark )
r> dup >resolve 4 + ( u a )
postpone literal ( a ) postpone literal ( u ) ; immediate compile-only
@@ -65,4 +65,7 @@
1 constant stdout
2 constant stderr
+: type swap stdout 1 syscall3 ;
+: emit sp 1 swap stdout 1 syscall3 2drop ;
+
bye