summaryrefslogtreecommitdiff
path: root/sanctuary.fs
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-04-22 01:27:02 +1000
committerkitty <nepeta@canaglie.net>2026-04-22 01:27:02 +1000
commit6975cd610ac3a32050e337b04d3f8c3f492cd28b (patch)
tree9da84e46c25aff2c870883286ddc0fa3272de3d0 /sanctuary.fs
parent0c46b326b3079ce2acd21817dae7c0bbe0b8d617 (diff)
case stuff
one of the tests is broken. i'm not entirely sure what the issue is yet
Diffstat (limited to 'sanctuary.fs')
-rw-r--r--sanctuary.fs16
1 files changed, 16 insertions, 0 deletions
diff --git a/sanctuary.fs b/sanctuary.fs
index 7d2c88d..ac71042 100644
--- a/sanctuary.fs
+++ b/sanctuary.fs
@@ -51,6 +51,12 @@
else >body [compile] literal ['] compile, compile, then ; immediate compile-only
\ todo doc
+: case 0 ; immediate
+: of postpone over postpone = postpone if postpone drop ; immediate
+: endof postpone else ; immediate
+: endcase postpone drop begin ?dup while postpone then repeat ; immediate
+
+\ todo doc
: recurse latest @ >body compile, ; immediate
: cells 8 * ;
@@ -594,6 +600,16 @@ decimal
: words get-order 0 ?do vlist loop ;
\ }}}
+\ TERMINAL CONTROL {{{
+vocabulary terminal
+also terminal definitions
+
+60 constant termios#
+create termios termios# allot
+
+previous definitions
+\ }}}
+
\ todo doc
0 constant version
: welcome ." sanctuary: a 64 bit forth for linux, version " version u. cr ;