summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-20 11:50:54 +1100
committerkitty <nepeta@canaglie.net>2026-03-20 11:50:54 +1100
commite3f99796bc5825f2b2e895960d30cb8c3cce5abd (patch)
tree48c51aa95bd920a1563b584fca9936030d8ed898
parent0c19ba3275211d20d954102cddc859222e41ae39 (diff)
\ comments
-rw-r--r--readme.md5
-rw-r--r--sanctuary.fs2
2 files changed, 6 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 0bc797e..e4c544f 100644
--- a/readme.md
+++ b/readme.md
@@ -74,6 +74,9 @@ start compilation of the word 'name'.
### `; ( -- ) IMMEDIATE`
end compilation of the currently compiling word.
+### `\ ( -- ) IMMEDIATE`
+start a comment that lasts until the end of the current line.
+
### `@ ( a -- u )`
fetch the 64 bit value at memory address a.
@@ -206,7 +209,7 @@ true if xt is marked immediate, false otherwise.
interprets the contents of the terminal input buffer
until it runs out.
-### `invert ( u -- u')`
+### `invert ( u -- u' )`
invert all bytes in u.
### `latest ( -- a )`
diff --git a/sanctuary.fs b/sanctuary.fs
index a69d973..e40527c 100644
--- a/sanctuary.fs
+++ b/sanctuary.fs
@@ -1 +1,3 @@
+: \ 10 parse 2drop ; immediate \ test
: ( [ char ) ] literal parse 2drop ; immediate ( test )
+bye