summaryrefslogtreecommitdiff
path: root/sanctuary.fs
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-04-21 17:21:44 +1000
committerkitty <nepeta@canaglie.net>2026-04-21 17:21:44 +1000
commit2778c7d8c90cde9dd67c2aa07b62f65ee8ec3838 (patch)
tree057468f09329dc475bcc7bc2bae92265d6bc0719 /sanctuary.fs
parent8a04dc8cbc3c977fe5bd7aade14b720df402b096 (diff)
recurse, chars, more tests
Diffstat (limited to 'sanctuary.fs')
-rw-r--r--sanctuary.fs8
1 files changed, 8 insertions, 0 deletions
diff --git a/sanctuary.fs b/sanctuary.fs
index 6f94aca..9ea7a5a 100644
--- a/sanctuary.fs
+++ b/sanctuary.fs
@@ -50,9 +50,17 @@
: postpone 'h ( word ) dup immediate? if >body compile,
else >body [compile] literal ['] compile, compile, then ; immediate compile-only
+\ todo doc
+: recurse latest @ >body compile, ; immediate
+
: cells 8 * ;
: cell+ 8 + ;
: cell- 8 - ;
+\ todo doc
+: chars ;
+: char+ 1+ ;
+: char- 1- ;
+
: create parse-name (header) latest ! ['] (create) compile, 0 , ;
: does> latest @ >body 2 + ['] (does>) over ! \ replace call loc
( replace destination ) 11 + r> swap ! ;