summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-15 23:03:21 +1100
committerkitty <nepeta@canaglie.net>2026-03-15 23:03:21 +1100
commit85199c06b8e104dfed0366389e6b95a7757d0510 (patch)
tree41bae529a7c70d89b81387a19db5407689a9c5d0 /readme.md
parent9f311bce41eb76a46213867b8762ee517d33b6ba (diff)
parse and parse-name (untested)
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 46112f3..5dd75bc 100644
--- a/readme.md
+++ b/readme.md
@@ -10,6 +10,7 @@ for amd64 linux systems.
- `n`: signed integer
- `u`: unsigned integer
- `?`: boolean flag
+- `""`: string in input buffer
## Glossary
@@ -52,6 +53,17 @@ yields the address of the first available byte in user memory.
a variable containing the execution token of
the most recently created word.
+### `parse ( "<ws>name<ws>" c -- a u )`
+parse one word from the input buffer,
+separated by a newline or the character c,
+and return as a string.
+
+### `parse-name ( "<ws>name<ws>" -- a u )`
+parse one whitespace-separated word from the input buffer,
+and return as a string.
+tabs (ascii 0x09), newlines (ascii 0x10), and spaces (ascii 0x20)
+are considered whitespace.
+
### `state ( -- a )`
a variable containing a boolean value.
if 0 (false), the system is in interpreting mode,