From f6c17e71505e735eaf16e99dac20885d3778b270 Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 23 Jan 2019 18:43:46 +0000 Subject: [PATCH] glossary: forgot to close tags FossilOrigin-Name: 2c1f5b485f4bfbbb12de854583841fe6fc3c703289bdc2ff409e41e6bdb57528 --- doc/Glossary.html | 3019 ++++++++++++++++++++++++++++++++++++++------- glossary.forth | 4 +- 2 files changed, 2588 insertions(+), 435 deletions(-) diff --git a/doc/Glossary.html b/doc/Glossary.html index 9e86351..9bf1749 100644 --- a/doc/Glossary.html +++ b/doc/Glossary.html @@ -1,9 +1,14 @@ -

*

Data: nn-n +

*

+

Data: nn-n +

Addr: - +

Float: - +

Multiply `n1` by `n2` and return the result. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -12,12 +17,17 @@ Example #1: #-1 #100 *
-

+

Data: nn-n +

+

+

Data: nn-n +

Addr: - +

Float: - +

Add `n1` to `n2` and return the result. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -25,12 +35,17 @@ Example #1: #1 #2 +
-

,

Data: n- +

,

+

Data: n- +

Addr: - +

Float: - +

Store the specified value into the memory at `here` and increment `Heap` by 1. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -38,12 +53,17 @@ Example #1: $a , $b , $c , #0 ,
-

-

Data: nn-n +

-

+

Data: nn-n +

Addr: - +

Float: - +

Subtract `n2` from `n1` and return the result. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -51,20 +71,30 @@ Example #1: #2 #1 -
-

---reveal---

Data: - +

---reveal---

+

Data: - +

Addr: - +

Float: - +

Switch to the exposed (public) portion of a lexical namespace. +

Class: class:word | Namespace: global | Interface Layer: all


-

-eq?

Data: nn-f +

-eq?

+

Data: nn-f +

Addr: - +

Float: - +

Compare two values for inequality. Returns `TRUE` if they are not equal or `FALSE` otherwise. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -73,60 +103,95 @@ Example #1: $a $b -eq?
-

-if

Data: fq- +

-if

+

Data: fq- +

Addr: - +

Float: - +

Execute the quotation if the flag is `FALSE`. +

Class: class:word | Namespace: global | Interface Layer: all


-

-if;

Data: fq- +

-if;

+

Data: fq- +

Addr: - +

Float: - +

Execute the quotation if the flag is `FALSE`. If false, also exit the word. +

Class: class:word | Namespace: global | Interface Layer: all


-

/

Data: mn-o +

/

+

Data: mn-o +

Addr: - +

Float: - +

Divide `m` by `n` and return the result. +

Class: class:word | Namespace: global | Interface Layer: all


-

/mod

Data: nm-op +

/mod

+

Data: nm-op +

Addr: - +

Float: - +

Divide `n` by `m` and return the result and remainder. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

0;

Data: n-n || n- +

0;

+

Data: n-n || n- +

Addr: - +

Float: - +

If `n` is zero, drop `n` and exit the current word. If non-zero, leave `n` alone and allow execution to continue. +

Class: class:macro | Namespace: global | Interface Layer: all


-

;

Data: - +

;

+

Data: - +

Addr: - +

Float: - +

End the current definition. +

Class: class:macro | Namespace: global | Interface Layer: all


-

?dup

Data: n-nn || n-n +

?dup

+

Data: n-nn || n-n +

Addr: - +

Float: - +

Duplicate top value on stack if not zero. If zero, do nothing. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -135,444 +200,719 @@ Example #1: #0 ?dup
-

ASCII:ACK

Data: -n +

ASCII:ACK

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:BEL

Data: -n +

ASCII:BEL

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:BS

Data: -n +

ASCII:BS

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:CAN

Data: -n +

ASCII:CAN

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:CR

Data: -n +

ASCII:CR

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DC1

Data: -n +

ASCII:DC1

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DC2

Data: -n +

ASCII:DC2

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DC3

Data: -n +

ASCII:DC3

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DC4

Data: -n +

ASCII:DC4

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DEL

Data: -n +

ASCII:DEL

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:DLE

Data: -n +

ASCII:DLE

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:EM

Data: -n +

ASCII:EM

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:ENQ

Data: -n +

ASCII:ENQ

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:EOT

Data: -n +

ASCII:EOT

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:ESC

Data: -n +

ASCII:ESC

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:ETB

Data: -n +

ASCII:ETB

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:ETX

Data: -n +

ASCII:ETX

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:FF

Data: -n +

ASCII:FF

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:FS

Data: -n +

ASCII:FS

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:GS

Data: -n +

ASCII:GS

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:HT

Data: -n +

ASCII:HT

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:LF

Data: -n +

ASCII:LF

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:NAK

Data: -n +

ASCII:NAK

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:NUL

Data: -n +

ASCII:NUL

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:RS

Data: -n +

ASCII:RS

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SI

Data: -n +

ASCII:SI

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SO

Data: -n +

ASCII:SO

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SOH

Data: -n +

ASCII:SOH

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SPACE

Data: -n +

ASCII:SPACE

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:STX

Data: -n +

ASCII:STX

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SUB

Data: -n +

ASCII:SUB

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:SYN

Data: -n +

ASCII:SYN

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:US

Data: -n +

ASCII:US

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

ASCII:VT

Data: -n +

ASCII:VT

+

Data: -n +

Addr: - +

Float: - +

Constant. Refers to specific ASCII code. +

Class: class:data | Namespace: ASCII | Interface Layer: all


-

Compiler

Data: -a +

Compiler

+

Data: -a +

Addr: - +

Float: - +

Variable. Holds the compiler state. If TRUE, the compiler is active. If FALSE, it is not. +

Class: class:data | Namespace: global | Interface Layer: all


-

Dictionary

Data: -a +

Dictionary

+

Data: -a +

Addr: - +

Float: - +

Variable. Holds a pointer to the most recent dictionary header. +

Class: class:data | Namespace: global | Interface Layer: all


-

EOM

Data: -n +

EOM

+

Data: -n +

Addr: - +

Float: - +

Constant. Returns the last addressable memory address. +

Class: class:word | Namespace: global | Interface Layer: all


-

FALSE

Data: -n +

FALSE

+

Data: -n +

Addr: - +

Float: - +

Returns `0`, the value used to indicate a FALSE result. +

Class: class:word | Namespace: global | Interface Layer: all


-

FREE

Data: -n +

FREE

+

Data: -n +

Addr: - +

Float: - +

Returns the number of cells available to your application. This is the amount of memory, less the already consumed portion and buffers mapped for RETRO's internal use. +

Class: class:word | Namespace: global | Interface Layer: all


-

Heap

Data: -a +

Heap

+

Data: -a +

Addr: - +

Float: - +

Variable. Holds the address of the next available cell. +

Class: class:data | Namespace: global | Interface Layer: all


-

I

Data: -n +

I

+

Data: -n +

Addr: - +

Float: - +

Access the loop index for the current loop. (For loops made using `times<with-index>`) +

Class: class:word | Namespace: global | Interface Layer: all


-

J

Data: -n +

J

+

Data: -n +

Addr: - +

Float: - +

Access the parent loop index for the current loop. (For loops made using `times<with-index>`) +

Class: class:word | Namespace: global | Interface Layer: all


-

K

Data: -n +

K

+

Data: -n +

Addr: - +

Float: - +

Access the grandparent loop index for the current loop. (For loops made using `times<with-index>`) +

Class: class:word | Namespace: global | Interface Layer: all


-

NoEcho

Data: -a +

NoEcho

+

Data: -a +

Addr: - +

Float: - +

Variable. If TRUE, allow display of the "ok" prompt and startup banner. +

Class: class:word | Namespace: global | Interface Layer: rre


-

RewriteUnderscores

Data: -a +

RewriteUnderscores

+

Data: -a +

Addr: - +

Float: - +

Variable. When set to `TRUE`, RETRO will replace underscores in strings with spaces. When `FALSE`, RETRO does not. +

Class: class:data | Namespace: global | Interface Layer: all


-

STRINGS

Data: -a +

STRINGS

+

Data: -a +

Addr: - +

Float: - +

Return the address of the start of the temporary string pool. +

Class: class:word | Namespace: global | Interface Layer: all


-

ScopeList

Data: -a +

ScopeList

+

Data: -a +

Addr: - +

Float: - +

Variable. This holds some information used by `{{` and `}}`. +

Class: class:data | Namespace: global | Interface Layer: all


-

TRUE

Data: -n +

TRUE

+

Data: -n +

Addr: - +

Float: - +

Returns `-1`, the value used to indicate a TRUE result. +

Class: class:word | Namespace: global | Interface Layer: all


-

TempStringMax

Data: -a +

TempStringMax

+

Data: -a +

Addr: - +

Float: - +

Variable. Holds the maximum length of a temporary string. +

Class: class:data | Namespace: global | Interface Layer: all


-

TempStrings

Data: -a +

TempStrings

+

Data: -a +

Addr: - +

Float: - +

Variable. Holds the number of temporary strings. +

Class: class:data | Namespace: global | Interface Layer: all


-

Version

Data: -a +

Version

+

Data: -a +

Addr: - +

Float: - +

Variable. This stores the version number. +

Class: class:data | Namespace: global | Interface Layer: all


-

[

Data: - +

[

+

Data: - +

Addr: - +

Float: - +

Begin a quotation. +

Class: class:macro | Namespace: global | Interface Layer: all


-

]

Data: - +

]

+

Data: - +

Addr: - +

Float: - +

End a quotation. +

Class: class:macro | Namespace: global | Interface Layer: all


-

again

Data: - +

again

+

Data: - +

Addr: - +

Float: - +

Close an unconditional loop. Branches back to the prior `repeat`. +

Class: class:macro | Namespace: global | Interface Layer: all


-

allot

Data: n- +

allot

+

Data: n- +

Addr: - +

Float: - +

Allocate the specified number of cells from the `Heap`. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -580,36 +920,56 @@ Example #1: 'Buffer d:create #100 allot
-

and

Data: nm-o +

and

+

Data: nm-o +

Addr: - +

Float: - +

Perform a bitwise AND operation between the two provided values. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

as{

Data: -f +

as{

+

Data: -f +

Addr: - +

Float: - +

Begin an assembly section. +

Class: class:macro | Namespace: global | Interface Layer: all


-

banner

Data: - +

banner

+

Data: - +

Addr: - +

Float: - +

Display a welcome message on startup. +

Class: class:word | Namespace: global | Interface Layer: rre


-

bi

Data: xqq-? +

bi

+

Data: xqq-? +

Addr: - +

Float: - +

Execute q1 against x, then execute q2 against a copy of x. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -617,12 +977,17 @@ Example #1: #100 [ #10 * ] [ #10 - ] bi
-

bi*

Data: xyqq-? +

bi*

+

Data: xyqq-? +

Addr: - +

Float: - +

Execute q1 against x and q2 against y. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -630,12 +995,17 @@ Example #1: #10 #20 [ #2 * ] [ #10 / ] bi*
-

bi@

Data: xyq-? +

bi@

+

Data: xyq-? +

Addr: - +

Float: - +

Execute q against x, then execute q against y. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -643,284 +1013,459 @@ Example #1: #10 #20 [ #3 * ] bi@
-

buffer:add

Data: n- +

buffer:add

+

Data: n- +

Addr: - +

Float: - +

Append a value to the current buffer. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:empty

Data: - +

buffer:empty

+

Data: - +

Addr: - +

Float: - +

Reset the current buffer to an empty state. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:end

Data: -a +

buffer:end

+

Data: -a +

Addr: - +

Float: - +

Return a pointer to the current end of the active buffer. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:get

Data: -n +

buffer:get

+

Data: -n +

Addr: - +

Float: - +

Remove the last value from the current buffer. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:preserve

Data: q- +

buffer:preserve

+

Data: q- +

Addr: - +

Float: - +

Save and restore the current buffer before and after executing the specified quote. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:set

Data: a- +

buffer:set

+

Data: a- +

Addr: - +

Float: - +

Assign a new buffer as the current one. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:size

Data: -n +

buffer:size

+

Data: -n +

Addr: - +

Float: - +

Return the number of cells in the buffer. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

buffer:start

Data: -a +

buffer:start

+

Data: -a +

Addr: - +

Float: - +

Return the start address of the current buffer. +

Class: class:word | Namespace: buffer | Interface Layer: all


-

bye

Data: - +

bye

+

Data: - +

Addr: - +

Float: - +

Exit RETRO. +

Class: class:word | Namespace: global | Interface Layer: rre


-

c:-consonant?

Data: c-f +

c:-consonant?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is a not consonant or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-digit?

Data: c-f +

c:-digit?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is a not numeric digit or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-lowercase?

Data: c-f +

c:-lowercase?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is not lowercase or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-uppercase?

Data: c-f +

c:-uppercase?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is not uppercase or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-visible?

Data: c-f +

c:-visible?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is not printable or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-vowel?

Data: c-f +

c:-vowel?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is not a vowel or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:-whitespace?

Data: c-f +

c:-whitespace?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is not whitespace, or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:consonant?

Data: c-f +

c:consonant?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is a consonant or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:digit?

Data: c-f +

c:digit?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is a numeric digit or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:get

Data: -c +

c:get

+

Data: -c +

Addr: - +

Float: - +

Read a single keypress. +

Class: class:word | Namespace: global | Interface Layer: rre


-

c:letter?

Data: c-f +

c:letter?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is an ASCII letter or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:lowercase?

Data: c-f +

c:lowercase?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is lowercase or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:put

Data: c- +

c:put

+

Data: c- +

Addr: - +

Float: - +

Display a single character. +

Class: class:word | Namespace: global | Interface Layer: all


-

c:to-lower

Data: c-c +

c:to-lower

+

Data: c-c +

Addr: - +

Float: - +

Convert character to lowercase equivalent. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:to-number

Data: c-n +

c:to-number

+

Data: c-n +

Addr: - +

Float: - +

Convert an ASCII digit character into the corresponding decimal value +

Class: class:word | Namespace: global | Interface Layer: all


-

c:to-string

Data: c-s +

c:to-string

+

Data: c-s +

Addr: - +

Float: - +

Convert character into a string. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:to-upper

Data: c-c +

c:to-upper

+

Data: c-c +

Addr: - +

Float: - +

Convert character to uppercase equivalent. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:toggle-case

Data: c-c +

c:toggle-case

+

Data: c-c +

Addr: - +

Float: - +

Convert an ASCII character to the opposite case. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:uppercase?

Data: c-f +

c:uppercase?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is uppercase or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:visible?

Data: c-f +

c:visible?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is printable or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:vowel?

Data: c-f +

c:vowel?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is a vowel or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

c:whitespace?

Data: c-f +

c:whitespace?

+

Data: c-f +

Addr: - +

Float: - +

Return TRUE if character is whitespace, or FALSE otherwise. +

Class: class:word | Namespace: c | Interface Layer: all


-

call

Data: a- +

call

+

Data: a- +

Addr: - +

Float: - +

Call a function. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

case

Data: nmq- || nmq-n +

case

+

Data: nmq- || nmq-n +

Addr: - +

Float: - +

If `n` is equal to `m`, drop both and execute the specified quote before exiting the calling word. If not equal, leave `n` on the stack and let execution continue. +

Class: class:word | Namespace: global | Interface Layer: all


-

choose

Data: fqq- +

choose

+

Data: fqq- +

Addr: - +

Float: - +

Execute q1 if the flag is true (-1) or q2 if the flag is false (0). Only these flags are valid when using `choose`. +

Class: class:word | Namespace: global | Interface Layer: all


-

class:data

Data: n- || n-n +

class:data

+

Data: n- || n-n +

Addr: - +

Float: - +

Class handler for data structures. +

Interpret Time: Keep the address or value on the stack.

@@ -929,12 +1474,17 @@ Example #1:

Class: class:word | Namespace: class | Interface Layer: all


-

class:macro

Data: a- +

class:macro

+

Data: a- +

Addr: - +

Float: - +

Class handler for compiler macros (immediate words) +

Interpret Time: Execute the function at the provided address.

@@ -943,12 +1493,17 @@ Example #1:

Class: class:word | Namespace: class | Interface Layer: all


-

class:primitive

Data: a- +

class:primitive

+

Data: a- +

Addr: - +

Float: - +

Class handler for primitive words (words which map to Nga instructions) +

Interpret Time: Execute the function.

@@ -957,12 +1512,17 @@ Example #1:

Class: class:word | Namespace: class | Interface Layer: all


-

class:word

Data: a- +

class:word

+

Data: a- +

Addr: - +

Float: - +

Class handler for normal words. +

Interpret Time: Execute the function at the provided address.

@@ -971,324 +1531,524 @@ Example #1:

Class: class:word | Namespace: class | Interface Layer: all


-

clock:day

Data: -n +

clock:day

+

Data: -n +

Addr: - +

Float: - +

Return the current day. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

clock:hour

Data: -n +

clock:hour

+

Data: -n +

Addr: - +

Float: - +

Return the current hour. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

clock:minute

Data: -n +

clock:minute

+

Data: -n +

Addr: - +

Float: - +

Return the current minute. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

clock:month

Data: -n +

clock:month

+

Data: -n +

Addr: - +

Float: - +

Return the current month. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

clock:second

Data: -n +

clock:second

+

Data: -n +

Addr: - +

Float: - +

Return the current second. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

clock:year

Data: -n +

clock:year

+

Data: -n +

Addr: - +

Float: - +

Return the current year. +

Class: class:word | Namespace: clock | Interface Layer: iOS


-

compile:call

Data: a- +

compile:call

+

Data: a- +

Addr: - +

Float: - +

Compile a call to the specified address into the current definition. +

Class: class:word | Namespace: compile | Interface Layer: all


-

compile:jump

Data: a- +

compile:jump

+

Data: a- +

Addr: - +

Float: - +

Compile a jump to the specified address into the current definition. +

Class: class:word | Namespace: compile | Interface Layer: all


-

compile:lit

Data: n- +

compile:lit

+

Data: n- +

Addr: - +

Float: - +

Compile the code to push a number to the stack into the current definition. +

Class: class:word | Namespace: compile | Interface Layer: all


-

compile:ret

Data: - +

compile:ret

+

Data: - +

Addr: - +

Float: - +

Compile a return instruction into the current definition. +

Class: class:word | Namespace: compile | Interface Layer: all


-

compiling?

Data: -f +

compiling?

+

Data: -f +

Addr: - +

Float: - +

Return `TRUE` if compiler is on or `FALSE` otherwise. +

Class: class:word | Namespace: global | Interface Layer: all


-

const

Data: ns- +

const

+

Data: ns- +

Addr: - +

Float: - +

Create a constant returning the specified value. +

Class: class:word | Namespace: global | Interface Layer: all


-

copy

Data: sdl- +

copy

+

Data: sdl- +

Addr: - +

Float: - +

Copy `l` cells from memory at `s` to the memory at `d`. These should not overlap. +

Class: class:word | Namespace: global | Interface Layer: all


-

curry

Data: nq-q +

curry

+

Data: nq-q +

Addr: - +

Float: - +

Bind a value to a function and return a new quote that calls the bound action. +

Class: class:word | Namespace: global | Interface Layer: all


-

d

Data: n- +

d

+

Data: n- +

Addr: - +

Float: - +

Inline a numeric value to the current assembly segment. +

Class: class:word | Namespace: global | Interface Layer: all


-

d:add-header

Data: saa- +

d:add-header

+

Data: saa- +

Addr: - +

Float: - +

Create a header. Provide a string (s) for the name, a pointer to the class handler (a1) and a pointer to the word definition (a2) Generally this won't be used directly. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:class

Data: d-a +

d:class

+

Data: d-a +

Addr: - +

Float: - +

Given a dictionary header, return the class field. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:create

Data: s- +

d:create

+

Data: s- +

Addr: - +

Float: - +

Create a new dictionary header named the specified string. The new header will point to `here` and have a class of `class:data`. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:for-each

Data: q- +

d:for-each

+

Data: q- +

Addr: - +

Float: - +

Execute the specified quote once for each header in the dictionary. Before running the quote, this also pushes a pointer to the header onto the stack. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:last

Data: -d +

d:last

+

Data: -d +

Addr: - +

Float: - +

Return the most recent dictionary header. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:last<class>

Data: -a +

d:last<class>

+

Data: -a +

Addr: - +

Float: - +

Return a pointer to the class field of the most recent dictionary header. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:last<name>

Data: -s +

d:last<name>

+

Data: -s +

Addr: - +

Float: - +

Return a pointer to the name field of the most recent dictionary header. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:last<xt>

Data: -a +

d:last<xt>

+

Data: -a +

Addr: - +

Float: - +

Return a pointer to the xt field of the most recent dictionary header. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:link

Data: d-a +

d:link

+

Data: d-a +

Addr: - +

Float: - +

Given a dictionary header, return the link field. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:lookup

Data: s-d +

d:lookup

+

Data: s-d +

Addr: - +

Float: - +

Lookup the specified name in the dictionary and return a pointer to its dictionary header. This returns zero if the word is not found. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:lookup-xt

Data: a-d +

d:lookup-xt

+

Data: a-d +

Addr: - +

Float: - +

Lookup the specified address in the dictionary and return a pointer to its dictionary header. This returns zero if the word is not found. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:name

Data: d-s +

d:name

+

Data: d-s +

Addr: - +

Float: - +

Given a dictionary header, return the name field. +

Class: class:word | Namespace: d | Interface Layer: all


-

d:words

Data: - +

d:words

+

Data: - +

Addr: - +

Float: - +

Display a list of all named items in the `Dictionary`. +

Class: class:word | Namespace: global | Interface Layer: all


-

d:words-with

Data: s- +

d:words-with

+

Data: s- +

Addr: - +

Float: - +

Display a list of all named items in the `Dictionary` that contain the provided substring. +

Class: class:word | Namespace: global | Interface Layer: all


-

d:xt

Data: d-a +

d:xt

+

Data: d-a +

Addr: - +

Float: - +

Given a dictionary header, return the xt field. +

Class: class:word | Namespace: d | Interface Layer: all


-

data

Data: - +

data

+

Data: - +

Addr: - +

Float: - +

Change the class of the most recently defined word to `class:data`. +

Class: class:word | Namespace: global | Interface Layer: all


-

depth

Data: -n +

depth

+

Data: -n +

Addr: - +

Float: - +

Return the number of items on the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

dip

Data: nq-n +

dip

+

Data: nq-n +

Addr: - +

Float: - +

Temporarily remove n from the stack, execute the quotation, and then restore n to the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

does

Data: q- +

does

+

Data: q- +

Addr: - +

Float: - +

Attach an action to the most recently created word. This is used in a manner similar to CREATE/DOES> in traditional Forth. +

Class: class:word | Namespace: global | Interface Layer: all


-

drop

Data: n- +

drop

+

Data: n- +

Addr: - +

Float: - +

Discard the top value on the stack. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

drop-pair

Data: nn- +

drop-pair

+

Data: nn- +

Addr: - +

Float: - +

Remove top two items on the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

dump-stack

Data: - +

dump-stack

+

Data: - +

Addr: - +

Float: - +

Display the items on the data stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

dup

Data: n-nn +

dup

+

Data: n-nn +

Addr: - +

Float: - +

Duplicate the top item on the stack. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

dup-pair

Data: nm-nmnm +

dup-pair

+

Data: nm-nmnm +

Addr: - +

Float: - +

Duplicate the top two items on the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

eq?

Data: nn-f +

eq?

+

Data: nn-f +

Addr: - +

Float: - +

Compare two values for equality. Returns `TRUE` if they are equal or `FALSE` otherwise. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -1297,20 +2057,30 @@ Example #1: $a $b eq?
-

err:notfound

Data: - +

err:notfound

+

Data: - +

Addr: - +

Float: - +

Error handler. Called when a word is not found by `interpret`. +

Class: class:word | Namespace: err | Interface Layer: all


-

f:*

Data: - +

f:*

+

Data: - +

Addr: - +

Float: FF-F +

Multiply two floating point numbers, returning the result. +

Class: class:word | Namespace: f | Interface Layer: rre

Example #1: @@ -1318,12 +2088,17 @@ Example #1: .3.1415 .22 f:*
-

f:+

Data: - +

f:+

+

Data: - +

Addr: - +

Float: FF-F +

Add two floating point numbers, returning the result. +

Class: class:word | Namespace: f | Interface Layer: rre

Example #1: @@ -1331,12 +2106,17 @@ Example #1: .3.1 .22 f:+
-

f:-

Data: - +

f:-

+

Data: - +

Addr: - +

Float: FF-F +

Subtract F2 from F1 returing the result. +

Class: class:word | Namespace: f | Interface Layer: rre

Example #1: @@ -1344,212 +2124,342 @@ Example #1: .22.3 .0.12 f:-
-

f:-INF

Data: - +

f:-INF

+

Data: - +

Addr: - +

Float: -n +

Return a value corresponding to negative infinity +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:-eq?

Data: -f +

f:-eq?

+

Data: -f +

Addr: - +

Float: FF- +

Compare two floating point values for inequality. Returns `TRUE` if they are not equal or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:-inf?

Data: -f +

f:-inf?

+

Data: -f +

Addr: - +

Float: F- +

Return `TRUE` if floating point value is -INF or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:/

Data: - +

f:/

+

Data: - +

Addr: - +

Float: FF-F +

Divide floating point value F1 by F2. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:E

Data: - +

f:E

+

Data: - +

Addr: - +

Float: -F +

Return the floating point value for Euler's number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:INF

Data: - +

f:INF

+

Data: - +

Addr: - +

Float: -n +

Return a value corresponding to positive infinity +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:NAN

Data: - +

f:NAN

+

Data: - +

Addr: - +

Float: -n +

Return a value corresponding to NaN +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:PI

Data: - +

f:PI

+

Data: - +

Addr: - +

Float: -F +

Return the floating point value for PI. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:abs

Data: - +

f:abs

+

Data: - +

Addr: - +

Float: F-F +

Return the absolute value for a floating point value. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:acos

Data: - +

f:acos

+

Data: - +

Addr: - +

Float: f-f +

Return the arc cosine of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:asin

Data: - +

f:asin

+

Data: - +

Addr: - +

Float: f-f +

Return the arc sine of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:atan

Data: - +

f:atan

+

Data: - +

Addr: - +

Float: f-f +

Return the arc tangent of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:ceiling

Data: - +

f:ceiling

+

Data: - +

Addr: - +

Float: F-F +

Return the smallest integral value greater than or equal to the specified value. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:cos

Data: - +

f:cos

+

Data: - +

Addr: - +

Float: f-f +

Return the cosine of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:depth

Data: -n +

f:depth

+

Data: -n +

Addr: - +

Float: - +

Return the number of items on the floating point stack. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:drop

Data: - +

f:drop

+

Data: - +

Addr: - +

Float: F- +

Discard the top item on the floating point stack. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:dup

Data: - +

f:dup

+

Data: - +

Addr: - +

Float: F-FF +

Duplicate the top item on the floating point stack. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:eq?

Data: -f +

f:eq?

+

Data: -f +

Addr: - +

Float: FF- +

Compare two floating point values for equality. Returns `TRUE` if they are equal or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:fetch

Data: a- +

f:fetch

+

Data: a- +

Addr: - +

Float: -n +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

f:floor

Data: - +

f:floor

+

Data: - +

Addr: - +

Float: F-F +

Perform a mathmatical floor operation on the floating point value. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:gt?

Data: -f +

f:gt?

+

Data: -f +

Addr: - +

Float: FF- +

Compare two floating point values for greater than. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:inf?

Data: -f +

f:inf?

+

Data: -f +

Addr: - +

Float: F- +

Return `TRUE` if floating point value is INF or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:log

Data: - +

f:log

+

Data: - +

Addr: - +

Float: FF-F +

Return log(F1) for base F2 for floating point values. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:lt?

Data: -f +

f:lt?

+

Data: -f +

Addr: - +

Float: FF- +

Compare two floating point values for less than. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:nan?

Data: -f +

f:nan?

+

Data: -f +

Addr: - +

Float: F- +

Return `TRUE` if floating point value is NaN or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:negate

Data: - +

f:negate

+

Data: - +

Addr: - +

Float: F-F +

Invert the sign of the floating point value. +

Class: class:word | Namespace: f | Interface Layer: rre

Example #1: @@ -1557,140 +2467,225 @@ Example #1: .3.1415 f:negate
-

f:negative?

Data: -f +

f:negative?

+

Data: -f +

Addr: - +

Float: F- +

Return `TRUE` if floating point value is negative or `FALSE` if not. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:over

Data: - +

f:over

+

Data: - +

Addr: - +

Float: FG-FGF +

Put a copy of the second floating point value over the top one. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:positive?

Data: -f +

f:positive?

+

Data: -f +

Addr: - +

Float: F- +

Return `TRUE` if floating point value is positive or `FALSE` otherwise. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:power

Data: - +

f:power

+

Data: - +

Addr: - +

Float: FF-F +

Return F1^F2 for floating point values. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:put

Data: - +

f:put

+

Data: - +

Addr: - +

Float: F- +

Display a floating point number. +

Class: class:word | Namespace: global | Interface Layer: rre


-

f:round

Data: - +

f:round

+

Data: - +

Addr: - +

Float: f-f +

Round a floating point value. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:sin

Data: - +

f:sin

+

Data: - +

Addr: - +

Float: F-F +

Return the sine of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:sqrt

Data: - +

f:sqrt

+

Data: - +

Addr: - +

Float: F-F +

Return the square root of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:square

Data: - +

f:square

+

Data: - +

Addr: - +

Float: f-f +

Return the square of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:store

Data: a- +

f:store

+

Data: a- +

Addr: - +

Float: n- +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

f:swap

Data: - +

f:swap

+

Data: - +

Addr: - +

Float: FG-GF +

Exchange the top and second items on the floating point stack. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:tan

Data: - +

f:tan

+

Data: - +

Addr: - +

Float: F-F +

Return the tangent of a floating point number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:to-number

Data: -n +

f:to-number

+

Data: -n +

Addr: - +

Float: F- +

Convert a floating point value into a number. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:to-string

Data: -s +

f:to-string

+

Data: -s +

Addr: - +

Float: F- +

Convert a floating point value into a string. +

Class: class:word | Namespace: f | Interface Layer: rre


-

f:to-u

Data: -u +

f:to-u

+

Data: -u +

Addr: - +

Float: n- +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

f:tuck

Data: - +

f:tuck

+

Data: - +

Addr: - +

Float: FG-GFG +

Tuck a copy of the top floating point value under the second one. +

Class: class:word | Namespace: f | Interface Layer: rre


-

fetch

Data: a-n +

fetch

+

Data: a-n +

Addr: - +

Float: - +

Fetch the value stored at the specified address. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -1698,92 +2693,147 @@ Example #1: &Version fetch
-

fetch-next

Data: a-an +

fetch-next

+

Data: a-an +

Addr: - +

Float: - +

Fetch the value stored at the specified address. Returns the next address and the value. +

Class: class:word | Namespace: global | Interface Layer: all


-

file:A

Data: -n +

file:A

+

Data: -n +

Addr: - +

Float: - +

Constant for opening a file in APPEND mode. +

Class: class:data | Namespace: file | Interface Layer: rre


-

file:R

Data: -n +

file:R

+

Data: -n +

Addr: - +

Float: - +

Constant for opening a file in READ mode. +

Class: class:data | Namespace: file | Interface Layer: rre


-

file:R+

Data: -n +

file:R+

+

Data: -n +

Addr: - +

Float: - +

Constant for opening a file in READ & WRITE mode. +

Class: class:data | Namespace: file | Interface Layer: rre


-

file:W

Data: -n +

file:W

+

Data: -n +

Addr: - +

Float: - +

Constant for opening a file in WRITE mode. +

Class: class:data | Namespace: file | Interface Layer: rre


-

file:close

Data: h- +

file:close

+

Data: h- +

Addr: - +

Float: - +

Given a file handle, close the file. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:delete

Data: s- +

file:delete

+

Data: s- +

Addr: - +

Float: - +

Delete the named file. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:exists?

Data: s-f +

file:exists?

+

Data: s-f +

Addr: - +

Float: - +

Given a file name, return `TRUE` if it exists or `FALSE` if it does not. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:flush

Data: h- +

file:flush

+

Data: h- +

Addr: - +

Float: - +

Given a file handle, flush any pending writes to disk. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:for-each-line

Data: sq- +

file:for-each-line

+

Data: sq- +

Addr: - +

Float: - +

Given a file name, open it and run the quote once for each line in the file. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:open

Data: sm-h +

file:open

+

Data: sm-h +

Addr: - +

Float: - +

Open a named file (s) with the given mode (m). Returns a handle identifying the file. +

Class: class:word | Namespace: file | Interface Layer: rre

Example #1: @@ -1791,100 +2841,160 @@ Example #1: '/etc/motd file:R file:open
-

file:open<for-append>

Data: s-nn +

file:open<for-append>

+

Data: s-nn +

Addr: - +

Float: - +

Open a file for reading & writing. Returns the size (NOS) and a file ID (TOS) +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:open<for-reading>

Data: s-nn +

file:open<for-reading>

+

Data: s-nn +

Addr: - +

Float: - +

Open a file for reading. Returns the size (NOS) and a file ID (TOS) +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:open<for-writing>

Data: s-nn +

file:open<for-writing>

+

Data: s-nn +

Addr: - +

Float: - +

Open a file for reading. Returns the file ID +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:read

Data: h-c +

file:read

+

Data: h-c +

Addr: - +

Float: - +

Given a file handle, read and return the next character in it. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:read-line

Data: f-s +

file:read-line

+

Data: f-s +

Addr: - +

Float: - +

Given a file handle, read a line and return a pointer to it. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:seek

Data: nh- +

file:seek

+

Data: nh- +

Addr: - +

Float: - +

Move the current offset into a file to the specified one. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:size

Data: h-n +

file:size

+

Data: h-n +

Addr: - +

Float: - +

Given a file handle, return the size of the file (in bytes). +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:slurp

Data: as- +

file:slurp

+

Data: as- +

Addr: - +

Float: - +

Given an address and a file name, read the file contents into memory starting at the address. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:spew

Data: ss- +

file:spew

+

Data: ss- +

Addr: - +

Float: - +

Given a string (s1) and a file name (s2), write the string into the file, replacing any existing cotent. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:tell

Data: h-n +

file:tell

+

Data: h-n +

Addr: - +

Float: - +

Given a file handle, return the current offset in the file. +

Class: class:word | Namespace: file | Interface Layer: rre


-

file:write

Data: ch- +

file:write

+

Data: ch- +

Addr: - +

Float: - +

Write a character to the file represented by the handle. +

Class: class:word | Namespace: file | Interface Layer: rre


-

gopher:get

Data: asns-n +

gopher:get

+

Data: asns-n +

Addr: - +

Float: - +

Takes an address, a server, a port, and a selector. Fetch the resource and store it at address. Return the number of bytes received. +

Class: class:word | Namespace: gopher | Interface Layer: rre

Example #1: @@ -1893,36 +3003,56 @@ Example #1: here s:put
-

gt?

Data: nn-f +

gt?

+

Data: nn-f +

Addr: - +

Float: - +

Compare n1 and n2. Return `TRUE` if n1 is greater than n2, or `FALSE` otherwise. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

gteq?

Data: nn-f +

gteq?

+

Data: nn-f +

Addr: - +

Float: - +

Compare n1 and n2. Return `TRUE` if n1 is greater than or equal to n2, or `FALSE` otherwise. +

Class: class:word | Namespace: global | Interface Layer: all


-

here

Data: -a +

here

+

Data: -a +

Addr: - +

Float: - +

Return the next free address in memory. +

Class: class:word | Namespace: global | Interface Layer: all


-

hook

Data: - +

hook

+

Data: - +

Addr: - +

Float: - +

Add a hook point into the current word. This should only be used as the first word in a definition. +

Class: class:macro | Namespace: {n/a} | Interface Layer: global

Example #1: @@ -1930,52 +3060,82 @@ Example #1: :foo hook ;
-

i

Data: s- +

i

+

Data: s- +

Addr: - +

Float: - +

Assemble the instructions specified by the string into the current assembly scope. +

Class: class:word | Namespace: global | Interface Layer: all


-

if

Data: fq- +

if

+

Data: fq- +

Addr: - +

Float: - +

Execute the quote if the flag is `TRUE`. +

Class: class:word | Namespace: global | Interface Layer: all


-

if;

Data: fq- +

if;

+

Data: fq- +

Addr: - +

Float: - +

Execute the quotation if the flag is `TRUE`. If true, also exit the word. +

Class: class:word | Namespace: global | Interface Layer: all


-

immediate

Data: - +

immediate

+

Data: - +

Addr: - +

Float: - +

Change the class of the most recently defined word to `class:macro`. +

Class: class:word | Namespace: global | Interface Layer: all


-

include

Data: s- +

include

+

Data: s- +

Addr: - +

Float: - +

Run the code in the specified file. +

Class: class:word | Namespace: global | Interface Layer: rre


-

interpret

Data: s- +

interpret

+

Data: s- +

Addr: - +

Float: - +

Interpret a single input token. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -1984,132 +3144,212 @@ Example #1: 'words interpret
-

io:enumerate

Data: -n +

io:enumerate

+

Data: -n +

Addr: - +

Float: - +

Return the number of I/O devices. +

Class: class:word | Namespace: {n/a} | Interface Layer: all


-

io:file-operation

Data: ...n- +

io:file-operation

+

Data: ...n- +

Addr: - +

Float: - +

Trigger a file I/O operation. This is not intended to be used directly. +

Class: class:word | Namespace: io | Interface Layer: rre


-

io:float-operation

Data: ...n- +

io:float-operation

+

Data: ...n- +

Addr: - +

Float: - +

Trigger a floating point operation. This is not intended to be used directly. +

Class: class:word | Namespace: io | Interface Layer: rre


-

io:invoke

Data: n- +

io:invoke

+

Data: n- +

Addr: - +

Float: - +

Invoke an interaction with an I/O device. +

Class: class:word | Namespace: {n/a} | Interface Layer: all


-

io:query

Data: n-mN +

io:query

+

Data: n-mN +

Addr: - +

Float: - +

Ask an I/O device to identify itself. Returns a version (m) and device ID (N). +

Class: class:word | Namespace: {n/a} | Interface Layer: all


-

io:scan-for

Data: n-m +

io:scan-for

+

Data: n-m +

Addr: - +

Float: - +

Scan the I/O devices for a device with a specified ID. Returns the device number, or -1 if not found. +

Class: class:word | Namespace: {n/a} | Interface Layer: all


-

io:unix-syscall

Data: ...n- +

io:unix-syscall

+

Data: ...n- +

Addr: - +

Float: - +

Trigger a Unix system call. This is not intended to be used directly. +

Class: class:word | Namespace: io | Interface Layer: rre


-

ios:list-fonts

Data: - +

ios:list-fonts

+

Data: - +

Addr: - +

Float: - +

Display a list of all installed fonts. +

Class: class:word | Namespace: ios | Interface Layer: iOS


-

listen

Data: - +

listen

+

Data: - +

Addr: - +

Float: - +

Run interactive "listener" (a REPL). +

Class: class:word | Namespace: global | Interface Layer: rre


-

lt?

Data: nn-f +

lt?

+

Data: nn-f +

Addr: - +

Float: - +

Compare n1 and n2. Return `TRUE` if n1 is less than n2, or `FALSE` otherwise. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

lteq?

Data: nn-f +

lteq?

+

Data: nn-f +

Addr: - +

Float: - +

Compare n1 and n2. Return `TRUE` if n1 is less than or equal to n2, or `FALSE` otherwise. +

Class: class:word | Namespace: global | Interface Layer: all


-

mod

Data: nm-o +

mod

+

Data: nm-o +

Addr: - +

Float: - +

Divide `n` by `m` and return the remainder. +

Class: class:word | Namespace: global | Interface Layer: all


-

n:-zero?

Data: n-f +

n:-zero?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is not zero, or `FALSE` otherwise. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:MAX

Data: -n +

n:MAX

+

Data: -n +

Addr: - +

Float: - +

Return the maximum value that will fit in a cell. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:MIN

Data: -n +

n:MIN

+

Data: -n +

Addr: - +

Float: - +

Return the minimum value that will fit in a cell. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:abs

Data: n-n +

n:abs

+

Data: n-n +

Addr: - +

Float: - +

Return the absolute value of a number. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2119,12 +3359,17 @@ Example #1:
-

n:between?

Data: nlu-f +

n:between?

+

Data: nlu-f +

Addr: - +

Float: - +

Return TRUE if number is between the lower (l) and upper (u) bounds. If not, return FALSE. This is inclusive of the limits. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2133,12 +3378,17 @@ Example #1: $q $a $b n:between?
-

n:dec

Data: n-m +

n:dec

+

Data: n-m +

Addr: - +

Float: - +

Decrement n by one. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2146,12 +3396,17 @@ Example #1: #100 n:dec
-

n:even?

Data: n-f +

n:even?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is even, or `FALSE` if not. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2160,12 +3415,17 @@ Example #1: #11 n:even?
-

n:inc

Data: n-m +

n:inc

+

Data: n-m +

Addr: - +

Float: - +

Increment n by one. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2173,12 +3433,17 @@ Example #1: #100 n:inc
-

n:limit

Data: nlu-m +

n:limit

+

Data: nlu-m +

Addr: - +

Float: - +

Return n if it is within the lower (l) and upper (u) bounds. If outside the bounds, return the closes boundary value. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2187,12 +3452,17 @@ Example #1: #10 #1 #15 n:limit
-

n:max

Data: mn-o +

n:max

+

Data: mn-o +

Addr: - +

Float: - +

Return the greater of two values. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2201,12 +3471,17 @@ Example #1: #-8 #-10 n:max
-

n:min

Data: mn-o +

n:min

+

Data: mn-o +

Addr: - +

Float: - +

Return the lesser of two values. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2215,12 +3490,17 @@ Example #1: #-8 #-10 n:min
-

n:negate

Data: n-n +

n:negate

+

Data: n-n +

Addr: - +

Float: - +

Invert the sign of a number. +

Class: class:word | Namespace: n | Interface Layer: all

Example #1: @@ -2229,52 +3509,82 @@ Example #1: #-10 n:negate
-

n:negative?

Data: n-f +

n:negative?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is negative, or `FALSE` if not. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:odd?

Data: n-f +

n:odd?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is odd, or `FALSE` if not. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:positive?

Data: n-f +

n:positive?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is positive, or `FALSE` if not. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:pow

Data: bp-n +

n:pow

+

Data: bp-n +

Addr: - +

Float: - +

Return base (b) to power (p). +

Class: class:word | Namespace: n | Interface Layer: all


-

n:put

Data: n- +

n:put

+

Data: n- +

Addr: - +

Float: - +

Display a number. +

Class: class:word | Namespace: global | Interface Layer: all


-

n:random

Data: -n +

n:random

+

Data: -n +

Addr: - +

Float: - +

Return a random number +

Class: class:word | Namespace: n | Interface Layer: rre, ri

Example #1: @@ -2282,100 +3592,160 @@ Example #1: n:random n:put
-

n:sqrt

Data: n-m +

n:sqrt

+

Data: n-m +

Addr: - +

Float: - +

Return the square root of a number. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:square

Data: n-m +

n:square

+

Data: n-m +

Addr: - +

Float: - +

Return the square of a number. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:strictly-positive?

Data: n-f +

n:strictly-positive?

+

Data: n-f +

Addr: - +

Float: - +

Return TRUE if number is greater than zero or FALSE if it is zero or less. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:to-float

Data: n- +

n:to-float

+

Data: n- +

Addr: - +

Float: -F +

Convert a number into a floating point value. +

Class: class:word | Namespace: n | Interface Layer: rre


-

n:to-string

Data: n-s +

n:to-string

+

Data: n-s +

Addr: - +

Float: - +

Convert a number into a string. +

Class: class:word | Namespace: n | Interface Layer: all


-

n:zero?

Data: n-f +

n:zero?

+

Data: n-f +

Addr: - +

Float: - +

Return `TRUE` if number is zero, or `FALSE` otherwise. +

Class: class:word | Namespace: n | Interface Layer: all


-

nip

Data: nm-m +

nip

+

Data: nm-m +

Addr: - +

Float: - +

Remove the second item from the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

nl

Data: - +

nl

+

Data: - +

Addr: - +

Float: - +

Display a newline. +

Class: class:word | Namespace: global | Interface Layer: all


-

not

Data: n-m +

not

+

Data: n-m +

Addr: - +

Float: - +

Perform a logical NOT operation. +

Class: class:word | Namespace: global | Interface Layer: all


-

or

Data: mn-o +

or

+

Data: mn-o +

Addr: - +

Float: - +

Perform a bitwise OR between the provided values. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

over

Data: nm-nmn +

over

+

Data: nm-nmn +

Addr: - +

Float: - +

Put a copy of n over m. +

Class: class:word | Namespace: global | Interface Layer: all


-

parse-until

Data: q-s +

parse-until

+

Data: q-s +

Addr: - +

Float: - +

Read input from stdin (via `c:get`) until the returned character is matched by the quote. Returns a string. +

Class: class:word | Namespace: all | Interface Layer: rre

Example #1: @@ -2384,20 +3754,30 @@ Example #1: [ $. eq? ] parse-until ;
-

pb:get

Data: a- +

pb:get

+

Data: a- +

Addr: - +

Float: - +

Copy a string from the pasteboard to the specified address. +

Class: class:word | Namespace: pb | Interface Layer: iOS


-

pb:length

Data: -n +

pb:length

+

Data: -n +

Addr: - +

Float: - +

Return the length of the string on the pasteboard. +

Class: class:word | Namespace: {n/a} | Interface Layer: iOS

Example #1: @@ -2405,28 +3785,43 @@ Example #1: pb
-

pb:set

Data: s- +

pb:set

+

Data: s- +

Addr: - +

Float: - +

Copy a string to the pasteboard. +

Class: class:word | Namespace: pb | Interface Layer: iOS


-

pop

Data: -n +

pop

+

Data: -n +

Addr: n- +

Float: - +

Move a value from the return stack to the data stack. +

Class: class:macro | Namespace: global | Interface Layer: all


-

prefix:!

Data: ns- +

prefix:!

+

Data: ns- +

Addr: - +

Float: - +

Store a value into a variable. +

Interpret Time: Store a value into the named variable.

@@ -2435,12 +3830,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:"

Data: s-s +

prefix:"

+

Data: s-s +

Addr: - +

Float: - +

Process token as a string. +

Interpret Time: Keep string as permanent. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space.

@@ -2449,12 +3849,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:#

Data: s-n +

prefix:#

+

Data: s-n +

Addr: - +

Float: - +

Process token as a number. +

Interpret Time: Convert the string into a number and leave on the stack.

@@ -2463,12 +3868,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:$

Data: s-c +

prefix:$

+

Data: s-c +

Addr: - +

Float: - +

Process token as an ASCII character. +

Interpret Time: Fetch first character from string. Leave on stack.

@@ -2477,12 +3887,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:&

Data: s-a +

prefix:&

+

Data: s-a +

Addr: - +

Float: - +

Return a pointer to a named item. +

Interpret Time: Lookup name in dictionary, return contents of the xt field on the stack.

@@ -2491,12 +3906,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:'

Data: s-s +

prefix:'

+

Data: s-s +

Addr: - +

Float: - +

Process token as a string. +

Interpret Time: Move string into temporary buffer. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space.

@@ -2505,12 +3925,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:(

Data: s- +

prefix:(

+

Data: s- +

Addr: - +

Float: - +

Process token as a comment. +

Interpret Time: Discard the string.

@@ -2519,31 +3944,46 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:.

Data: s- +

prefix:.

+

Data: s- +

Addr: - +

Float: -F +

Interpret time: convert string to a floating point value. Compile time: convert string to a floating point value and compile code to push this value to the float stack. +

Class: class:macro | Namespace: prefix | Interface Layer: rre


-

prefix::

Data: s- +

prefix::

+

Data: s- +

Addr: - +

Float: - +

Process token as a new definition. +

Interpret Time: Create a header pointing to `here` with the provided string as the name. Sets class to `class:word`.

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:@

Data: s-n +

prefix:@

+

Data: s-n +

Addr: - +

Float: - +

Fetch from a stored variable. +

Interpret Time: Fetch a value from a named variable.

@@ -2552,12 +3992,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:`

Data: s- +

prefix:`

+

Data: s- +

Addr: - +

Float: - +

Process token as a bytecode. +

Interpret Time: Discard the string.

@@ -2566,12 +4011,17 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

prefix:|

Data: s- +

prefix:|

+

Data: s- +

Addr: - +

Float: - +

POSTPONE equivilent. +

Interpret Time: Discard the string.

@@ -2580,228 +4030,368 @@ pb

Class: class:macro | Namespace: prefix | Interface Layer: all


-

primitive

Data: - +

primitive

+

Data: - +

Addr: - +

Float: - +

Change the class of the most recently defined word to `class:primitive`. +

Class: class:word | Namespace: global | Interface Layer: all


-

push

Data: n- +

push

+

Data: n- +

Addr: -n +

Float: - +

Move a value from the data stack to the return stack. +

Class: class:macro | Namespace: global | Interface Layer: all


-

r

Data: s- +

r

+

Data: s- +

Addr: - +

Float: - +

Lookup a reference by name and inline its pointer to the current assembly segment. +

Class: class:word | Namespace: global | Interface Layer: all


-

random:mersenne

Data: -n +

random:mersenne

+

Data: -n +

Addr: - +

Float: - +

Return a random number using a mersenne shifter +

Class: class:word | Namespace: random | Interface Layer: rre, ri


-

random:mersenne:set-seed

Data: n- +

random:mersenne:set-seed

+

Data: n- +

Addr: - +

Float: - +

Seed random:mersenne with the specified value +

Class: class:word | Namespace: random | Interface Layer: rre, ri


-

random:xoroshiro128**

Data: -n +

random:xoroshiro128**

+

Data: -n +

Addr: - +

Float: - +

Return a random number using xoroshiro128** +

Class: class:word | Namespace: random | Interface Layer: rre, ri


-

random:xoroshiro128**:set-seed

Data: n- +

random:xoroshiro128**:set-seed

+

Data: n- +

Addr: - +

Float: - +

Seed random:xoroshiro128** with the specified value +

Class: class:word | Namespace: random | Interface Layer: rre, ri


-

reclass

Data: a- +

reclass

+

Data: a- +

Addr: - +

Float: - +

Change the class handler of the most recently defined word to the specified one. +

Class: class:word | Namespace: global | Interface Layer: all


-

reorder

Data: ...ss-? +

reorder

+

Data: ...ss-? +

Addr: - +

Float: - +

Restructure the order of items on the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

repeat

Data: - +

repeat

+

Data: - +

Addr: - +

Float: - +

Begin an unconditional loop. +

Class: class:macro | Namespace: global | Interface Layer: all


-

reset

Data: ...- +

reset

+

Data: ...- +

Addr: - +

Float: - +

Remove all items from the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

rot

Data: abc-bca +

rot

+

Data: abc-bca +

Addr: - +

Float: - +

Rotate the top three values. +

Class: class:word | Namespace: global | Interface Layer: all


-

s,

Data: s- +

s,

+

Data: s- +

Addr: - +

Float: - +

Compile the code needed to push a string pointer to the stack and inline the string data into the current definition. +

Class: class:word | Namespace: global | Interface Layer: all


-

s:ASCII-LETTERS

Data: -s +

s:ASCII-LETTERS

+

Data: -s +

Addr: - +

Float: - +

Constant. Returns a string of the ASCII letters (upper and lower case) +

Class: class:data | Namespace: s | Interface Layer: all


-

s:ASCII-LOWERCASE

Data: -s +

s:ASCII-LOWERCASE

+

Data: -s +

Addr: - +

Float: - +

Constant. Returns a string of the ASCII letters in lowercase +

Class: class:data | Namespace: s | Interface Layer: all


-

s:ASCII-UPPERCASE

Data: -s +

s:ASCII-UPPERCASE

+

Data: -s +

Addr: - +

Float: - +

Constant. Returns a string of the ASCII letters in uppercase +

Class: class:data | Namespace: s | Interface Layer: all


-

s:DIGITS

Data: -s +

s:DIGITS

+

Data: -s +

Addr: - +

Float: - +

Constant. Return a string of characters recognized as numeric digits. +

Class: class:data | Namespace: s | Interface Layer: all


-

s:PUNCTUATION

Data: -s +

s:PUNCTUATION

+

Data: -s +

Addr: - +

Float: - +

Constant. Return a string of characters recognized as punctuation. +

Class: class:data | Namespace: s | Interface Layer: all


-

s:WHITESPACE

Data: -s +

s:WHITESPACE

+

Data: -s +

Addr: - +

Float: - +

Constant. Returns a string of characters recognized as whitespace. +

Class: class:data | Namespace: s | Interface Layer: all


-

s:append

Data: ss-s +

s:append

+

Data: ss-s +

Addr: - +

Float: - +

Return a new string consisting of s1 followed by s2. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:case

Data: sSq- || sSq-s +

s:case

+

Data: sSq- || sSq-s +

Addr: - +

Float: - +

If the `s` matches `S`, discard `s` and run the quote before exiting the caller. If they do not match, discard the quote and leave `s` on the stack. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:chop

Data: s-s +

s:chop

+

Data: s-s +

Addr: - +

Float: - +

Remove the last character from a string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:const

Data: ss- +

s:const

+

Data: ss- +

Addr: - +

Float: - +

Create a constant named s2, returning a pointer to s1. This will use `s:keep` to preserve the original string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:contains-char?

Data: sc-f +

s:contains-char?

+

Data: sc-f +

Addr: - +

Float: - +

Return `TRUE` if the character is present in the string or `FALSE` otherwise. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:contains-string?

Data: ss-f +

s:contains-string?

+

Data: ss-f +

Addr: - +

Float: - +

Return `TRUE` if the second string is present in the first string or `FALSE` otherwise. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:copy

Data: sa- +

s:copy

+

Data: sa- +

Addr: - +

Float: - +

Copy a string (s) to a destination (a). This will include the terminator character when copying. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:empty

Data: -s +

s:empty

+

Data: -s +

Addr: - +

Float: - +

Return an empty string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:eq?

Data: ss-f +

s:eq?

+

Data: ss-f +

Addr: - +

Float: - +

Compare two strings for equality. Return `TRUE` if identical or `FALSE` if not. +

Class: class:word | Namespace: s | Interface Layer: all

Example #1: @@ -2810,164 +4400,264 @@ Example #1: 'test 'test s:eq?
-

s:evaluate

Data: s-? +

s:evaluate

+

Data: s-? +

Addr: - +

Float: - +

Evaluate string as if it was typed into the interpreter. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:filter

Data: sq-s +

s:filter

+

Data: sq-s +

Addr: - +

Float: - +

Execute the quote once for each value in the string. If the quote returns `TRUE`, append the value into a new string. If `FALSE` the value will be discarded. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:for-each

Data: sq- +

s:for-each

+

Data: sq- +

Addr: - +

Float: - +

Execute the quote once for each value in the string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:format

Data: ...s-s +

s:format

+

Data: ...s-s +

Addr: - +

Float: - +

Construct a new string using the template passed and items from the stack. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:get

Data: -s +

s:get

+

Data: -s +

Addr: - +

Float: - +

Read input from standard in (via `c:get`) until a CR or LF is encountered. Returns a strig. +

Class: class:word | Namespace: all | Interface Layer: rre


-

s:hash

Data: s-n +

s:hash

+

Data: s-n +

Addr: - +

Float: - +

Calculate a hash value for a string. This uses the djb2 algorithm. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:index-of

Data: sc-n +

s:index-of

+

Data: sc-n +

Addr: - +

Float: - +

Return the location of the first instance of the specified character in the string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:index-of-string

Data: ss-n +

s:index-of-string

+

Data: ss-n +

Addr: - +

Float: - +

Return the location of the first instance of the specified substring (s2) in the string (s1). Returns -1 if not found. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:keep

Data: s-s +

s:keep

+

Data: s-s +

Addr: - +

Float: - +

Store a string into the heap and return a pointer to the start of it. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:left

Data: sn-s +

s:left

+

Data: sn-s +

Addr: - +

Float: - +

Return a new string containing the first `n` characters from the source string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:length

Data: s-n +

s:length

+

Data: s-n +

Addr: - +

Float: - +

Return the number of characters in a string, excluding the NULL terminator. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:map

Data: sq-s +

s:map

+

Data: sq-s +

Addr: - +

Float: - +

Execute the specified quote once for each character in the string. Builds a new string from the return value of the quote. The quote should return only one value. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:prepend

Data: ss-s +

s:prepend

+

Data: ss-s +

Addr: - +

Float: - +

Return a new string consisting of s2 followed by s1. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:put

Data: s- +

s:put

+

Data: s- +

Addr: - +

Float: - +

Display a string. +

Class: class:word | Namespace: global | Interface Layer: all


-

s:replace

Data: sss-s +

s:replace

+

Data: sss-s +

Addr: - +

Float: - +

Replace the first instance of s2 in s1 with s3. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:reverse

Data: s-s +

s:reverse

+

Data: s-s +

Addr: - +

Float: - +

Reverse the order of ASCII characters in a string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:right

Data: sn-s +

s:right

+

Data: sn-s +

Addr: - +

Float: - +

Return a new string containing the specified number of characters from the right side of the string. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:skip

Data: - +

s:skip

+

Data: - +

Addr: - +

Float: - +

Internal helper function used to skip over a string in a definition. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:split

Data: sc-ss +

s:split

+

Data: sc-ss +

Addr: - +

Float: - +

Split a string on the first occurrance of the specified character. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:split-on-string

Data: ss-ss +

s:split-on-string

+

Data: ss-ss +

Addr: - +

Float: - +

Split a string on the first occurrance of the specified string. After the split, the top stack item will be the part of the string before the specified subsring, and the second item will be the rest of the original string. +

Class: class:word | Namespace: s | Interface Layer: all

Example #1: @@ -2975,76 +4665,121 @@ Example #1: 'Hello_Brave_World! 'Brave s:split-on-string s:put nl s:put nl
-

s:substr

Data: sfl-s +

s:substr

+

Data: sfl-s +

Addr: - +

Float: - +

Extract a substring from the specified string. This will take the characters starting at `f` and extend `l` characters in length. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:temp

Data: s-s +

s:temp

+

Data: s-s +

Addr: - +

Float: - +

Move a string into the temporary string buffers. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:to-float

Data: s- +

s:to-float

+

Data: s- +

Addr: - +

Float: -F +

Convert a string representation into a floating point value. +

Class: class:word | Namespace: s | Interface Layer: rre


-

s:to-lower

Data: s-s +

s:to-lower

+

Data: s-s +

Addr: - +

Float: - +

Convert uppercase ASCII characters in a string to lowercase. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:to-number

Data: s-n +

s:to-number

+

Data: s-n +

Addr: - +

Float: - +

Convert a string to a number. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:to-upper

Data: s-s +

s:to-upper

+

Data: s-s +

Addr: - +

Float: - +

Convert lowercase ASCII characters in a string to uppercase. +

Class: class:word | Namespace: s | Interface Layer: all


-

s:tokenize

Data: sc-a +

s:tokenize

+

Data: sc-a +

Addr: - +

Float: - +

Takes a string and a character to use as a separator. It splits the string into a set of substrings and returns a set containing pointers to each of them. +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

s:tokenize-on-string

Data: ss-a +

s:tokenize-on-string

+

Data: ss-a +

Addr: - +

Float: - +

Takes a string (s1) and a substring (s2) use as a separator. It splits the string into a set of substrings and returns a set containing pointers to each of them. +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

s:trim

Data: s-s +

s:trim

+

Data: s-s +

Addr: - +

Float: - +

Trim leading and trailing whitespace from a string. +

Class: class:word | Namespace: s | Interface Layer: all

Example #1: @@ -3052,12 +4787,17 @@ Example #1: '__hello__ s:trim
-

s:trim-left

Data: s-s +

s:trim-left

+

Data: s-s +

Addr: - +

Float: - +

Trim leading whitespace from a string. +

Class: class:word | Namespace: s | Interface Layer: all

Example #1: @@ -3065,12 +4805,17 @@ Example #1: '__hello__ s:trim-left
-

s:trim-right

Data: s-s +

s:trim-right

+

Data: s-s +

Addr: - +

Float: - +

Trim trailing whitespace from a string. +

Class: class:word | Namespace: s | Interface Layer: all

Example #1: @@ -3078,12 +4823,17 @@ Example #1: '__hello__ s:trim-right
-

set-hook

Data: aa- +

set-hook

+

Data: aa- +

Addr: - +

Float: - +

Patch the hook point in a2 to point to a1. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3093,132 +4843,212 @@ Example #1: &bar &foo set-hook
-

set:contains-string?

Data: sa-f +

set:contains-string?

+

Data: sa-f +

Addr: - +

Float: - +

Return `TRUE` if the string value is in the set or`FALSE` otherwise. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:contains?

Data: na-f +

set:contains?

+

Data: na-f +

Addr: - +

Float: - +

Return `TRUE` if the value is in the set or `FALSE` otherwise. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:counted-results

Data: q-a +

set:counted-results

+

Data: q-a +

Addr: - +

Float: - +

Run a quote and construct a new set from the returned values. The quote should return the values and the number of values to put into the set. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:dup

Data: a-b +

set:dup

+

Data: a-b +

Addr: - +

Float: - +

Make a copy of a set. Return the address of the copy. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:filter

Data: aq-b +

set:filter

+

Data: aq-b +

Addr: - +

Float: - +

For each item in the initial set, run the specified quote. If the quote returns `TRUE`, copy the item into a new set. If `FALSE`, discard it. Returns a pointer to the new set. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:for-each

Data: aq- +

set:for-each

+

Data: aq- +

Addr: - +

Float: - +

Execute the quote once for each item in the set. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:from-string

Data: s-a +

set:from-string

+

Data: s-a +

Addr: - +

Float: - +

Create a new set with the characters in the source string. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:length

Data: a-n +

set:length

+

Data: a-n +

Addr: - +

Float: - +

Return the length of a set. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:make

Data: q-a +

set:make

+

Data: q-a +

Addr: - +

Float: - +

Execute quote. Return a new set containing the values the quote leaves on the stack. This is identical to doing `set:counted-results set:reverse` +

Class: class:word | Namespace: set | Interface Layer: all


-

set:map

Data: aq- +

set:map

+

Data: aq- +

Addr: - +

Float: - +

Execute quote once for each item in the set. Constructs a new set from the value returned by the quote. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:nth

Data: an-b +

set:nth

+

Data: an-b +

Addr: - +

Float: - +

Return the actual address of the nth item in the set. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:reduce

Data: pnq-n +

set:reduce

+

Data: pnq-n +

Addr: - +

Float: - +

Takes a set, a starting value, and a quote. This will apply the quote to each item in the set; the quote should consume two values and return one. +

Class: class:word | Namespace: set | Interface Layer: all


-

set:reverse

Data: a-b +

set:reverse

+

Data: a-b +

Addr: - +

Float: - +

Reverse the order of items in a set. This will return a new set. +

Class: class:word | Namespace: set | Interface Layer: all


-

shift

Data: mn-o +

shift

+

Data: mn-o +

Addr: - +

Float: - +

Peform a bitwise shift of m by n bits. If n is positive, shift right. If negative, the shift will be to the left. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

sip

Data: nq-n +

sip

+

Data: nq-n +

Addr: - +

Float: - +

Run quote. After execution completes, put a copy of n back on top of the stack. +

Class: class:word | Namespace: global | Interface Layer: all


-

sp

Data: - +

sp

+

Data: - +

Addr: - +

Float: - +

Display a space (`ASCII:SPACE`) +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3227,12 +5057,17 @@ Example #1: #12 spaces
-

store

Data: na- +

store

+

Data: na- +

Addr: - +

Float: - +

Store a value into the specified address. +

Class: class:primitive | Namespace: global | Interface Layer: all

Example #1: @@ -3241,52 +5076,82 @@ Example #1: #10 &Base store
-

store-next

Data: na-a +

store-next

+

Data: na-a +

Addr: - +

Float: - +

Store a value into the specified address and return the next address. +

Class: class:word | Namespace: global | Interface Layer: all


-

swap

Data: nm-mn +

swap

+

Data: nm-mn +

Addr: - +

Float: - +

Exchange the position of the top two items on the stack +

Class: class:primitive | Namespace: global | Interface Layer: all


-

sys:argc

Data: -n +

sys:argc

+

Data: -n +

Addr: - +

Float: - +

Return the number of arguments passed to the program. +

Class: class:word | Namespace: sys | Interface Layer: rre


-

sys:argv

Data: n-s +

sys:argv

+

Data: n-s +

Addr: - +

Float: - +

Given an argument number, return the argument as a string. +

Class: class:word | Namespace: sys | Interface Layer: rre


-

tab

Data: - +

tab

+

Data: - +

Addr: - +

Float: - +

Display a tab (`ASCII:HT`) +

Class: class:word | Namespace: global | Interface Layer: all


-

times

Data: nq- +

times

+

Data: nq- +

Addr: - +

Float: - +

Run the specified quote the specified number of times. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3294,164 +5159,264 @@ Example #1: #12 [ $- c:put ] times
-

times<with-index>

Data: nq- +

times<with-index>

+

Data: nq- +

Addr: - +

Float: - +

Run a quote the specified number of times, tracking the loop index in `I`. +

Class: class:word | Namespace: global | Interface Layer: all


-

tri

Data: xqqq-? +

tri

+

Data: xqqq-? +

Addr: - +

Float: - +

Apply q1 against x, then q2 against a copy of x, and finally q3 against another copy of x. +

Class: class:word | Namespace: global | Interface Layer: all


-

tri*

Data: xyzqqq-? +

tri*

+

Data: xyzqqq-? +

Addr: - +

Float: - +

Apply q1 against x, q2 against y, and q3 against z. +

Class: class:word | Namespace: global | Interface Layer: all


-

tri@

Data: xyzq-? +

tri@

+

Data: xyzq-? +

Addr: - +

Float: - +

Apply q against x, then against y, and finally against z. +

Class: class:word | Namespace: global | Interface Layer: all


-

tuck

Data: nm-mnm +

tuck

+

Data: nm-mnm +

Addr: - +

Float: - +

Put a copy of the top item on the stack under the second one. +

Class: class:word | Namespace: global | Interface Layer: all


-

u:-INF

Data: -u +

u:-INF

+

Data: -u +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:-inf?

Data: u-f +

u:-inf?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:INF

Data: -u +

u:INF

+

Data: -u +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:MAX

Data: -u +

u:MAX

+

Data: -u +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:MIN

Data: -u +

u:MIN

+

Data: -u +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:NAN

Data: -u +

u:NAN

+

Data: -u +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:clip

Data: u-U +

u:clip

+

Data: u-U +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:inf?

Data: u-f +

u:inf?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:max?

Data: u-f +

u:max?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:min?

Data: u-f +

u:min?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:n?

Data: u-f +

u:n?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:nan?

Data: u-f +

u:nan?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:to-f

Data: u- +

u:to-f

+

Data: u- +

Addr: - +

Float: -n +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

u:zero?

Data: u-f +

u:zero?

+

Data: u-f +

Addr: - +

Float: - +

{n/a} +

Class: class:word | Namespace: {n/a} | Interface Layer: {n/a}


-

unhook

Data: a- +

unhook

+

Data: a- +

Addr: - +

Float: - +

Reset the hook point in a1 to the default definition. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3462,12 +5427,17 @@ Example #1: &foo unhook
-

unix:chdir

Data: s- +

unix:chdir

+

Data: s- +

Addr: - +

Float: - +

Change the current working directory to the specified one. +

Class: class:word | Namespace: unix | Interface Layer: rre

Example #1: @@ -3475,60 +5445,95 @@ Example #1: '/etc unix:chdir
-

unix:exec0

Data: s- +

unix:exec0

+

Data: s- +

Addr: - +

Float: - +

Execute a process by running the application specified by s. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:exec1

Data: ss- +

unix:exec1

+

Data: ss- +

Addr: - +

Float: - +

Execute a process by running the application specified by s1. Pass s2 as an argument. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:exec2

Data: sss- +

unix:exec2

+

Data: sss- +

Addr: - +

Float: - +

Execute a process by running the application specified by s1. Pass s2 and s3 as arguments. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:exec3

Data: ssss- +

unix:exec3

+

Data: ssss- +

Addr: - +

Float: - +

Execute a process by running the application specified by s1. Pass s2, s3, and s4 as arguments. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:exit

Data: n- +

unix:exit

+

Data: n- +

Addr: - +

Float: - +

Exit the current process, returning the specified return code. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:fork

Data: -n +

unix:fork

+

Data: -n +

Addr: - +

Float: - +

Fork the current process. Returns a PID. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:getenv

Data: sa- +

unix:getenv

+

Data: sa- +

Addr: - +

Float: - +

Get an environment variable. Provide the name and an address to store it in. +

Class: class:word | Namespace: unix | Interface Layer: rre

Example #1: @@ -3536,60 +5541,95 @@ Example #1: 'SHELL s:empty [ unix:getenv ] sip s:put nl
-

unix:getpid

Data: -n +

unix:getpid

+

Data: -n +

Addr: - +

Float: - +

Return the PID of the current process. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:io:n:put

Data: n- +

unix:io:n:put

+

Data: n- +

Addr: - +

Float: - +

Display a number (in base 10) to the standard output device. This is faster than `n:put`, but not portable. +

Class: class:word | Namespace: unix:io | Interface Layer: rre


-

unix:io:s:put

Data: s- +

unix:io:s:put

+

Data: s- +

Addr: - +

Float: - +

Display a string to stdout. This is faster than `s:put`, but not portable. +

Class: class:word | Namespace: unix:io | Interface Layer: rre


-

unix:kill

Data: nn- +

unix:kill

+

Data: nn- +

Addr: - +

Float: - +

Terminates a process. Takes a process and a signal to send. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:pclose

Data: n- +

unix:pclose

+

Data: n- +

Addr: - +

Float: - +

Close a pipe. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:popen

Data: sn-n +

unix:popen

+

Data: sn-n +

Addr: - +

Float: - +

Open a pipe. Takes a command to run, and a file mode (`file:R` or `file:W`; `file:R+` may work on some systems). Returns a file ID usable with words in the `file:` namespace. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:putenv

Data: s- +

unix:putenv

+

Data: s- +

Addr: - +

Float: - +

Takes a string in the form `name=value` and sets an environment variable named `name` to `value`. +

Class: class:word | Namespace: unix | Interface Layer: rre

Example #1: @@ -3597,20 +5637,30 @@ Example #1: 'EDITOR=vi unix:putenv
-

unix:sleep

Data: n- +

unix:sleep

+

Data: n- +

Addr: - +

Float: - +

Sleep for the specified number of seconds. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:system

Data: s- +

unix:system

+

Data: s- +

Addr: - +

Float: - +

Runs another application using the system shell and returns after execution is completed. +

Class: class:word | Namespace: unix | Interface Layer: rre

Example #1: @@ -3618,28 +5668,43 @@ Example #1: 'ls_-lh_/etc unix:system
-

unix:wait

Data: -n +

unix:wait

+

Data: -n +

Addr: - +

Float: - +

Waits for a child process to complete. This maps to the wait() system call. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

unix:write

Data: sh- +

unix:write

+

Data: sh- +

Addr: - +

Float: - +

Write a string to the specified file handle. +

Class: class:word | Namespace: unix | Interface Layer: rre


-

until

Data: q- +

until

+

Data: q- +

Addr: - +

Float: - +

Execute quote repeatedly while the quote returns a value of `FALSE`. The quote should return a flag of either `TRUE` or `FALSE`, though `until` will treat any non-zero value as `TRUE`. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3647,84 +5712,134 @@ Example #1: #10 [ dup n:put nl n:dec dup n:zero? ] until
-

v:dec

Data: a- +

v:dec

+

Data: a- +

Addr: - +

Float: - +

Decrement the value stored at the specified address by 1. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:dec-by

Data: na- +

v:dec-by

+

Data: na- +

Addr: - +

Float: - +

Decrement the value stored at the specified address by the specified value. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:inc

Data: a- +

v:inc

+

Data: a- +

Addr: - +

Float: - +

Increment the value stored at the specified address by 1. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:inc-by

Data: na- +

v:inc-by

+

Data: na- +

Addr: - +

Float: - +

Increment the value stored at the specified address by the specified value. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:limit

Data: alu- +

v:limit

+

Data: alu- +

Addr: - +

Float: - +

Fetch the value stored at the address, then run `n:limit` against it, using the specified lower and upper bounds. Then store the resulting value back to the original address. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:off

Data: a- +

v:off

+

Data: a- +

Addr: - +

Float: - +

Set a variable to 0. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:on

Data: a- +

v:on

+

Data: a- +

Addr: - +

Float: - +

Set a variable to -1. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:preserve

Data: aq- +

v:preserve

+

Data: aq- +

Addr: - +

Float: - +

Make a copy of the value at the address, then run the quote. Once the quote completes, restore the address to the specified value. +

Class: class:word | Namespace: v | Interface Layer: all


-

v:update-using

Data: aq- +

v:update-using

+

Data: aq- +

Addr: - +

Float: - +

Fetch a value from the specified address, then run the quotation with this value on the stack. Afterwards, store the returned value at the original address. +

Class: class:word | Namespace: v | Interface Layer: all


-

var

Data: s- +

var

+

Data: s- +

Addr: - +

Float: - +

Create a variable. The variable is initialized to 0. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3732,12 +5847,17 @@ Example #1: 'Base var
-

var<n>

Data: ns- +

var<n>

+

Data: ns- +

Addr: - +

Float: - +

Create a variable with the specified initial value. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3746,12 +5866,17 @@ Example #1:
-

while

Data: q- +

while

+

Data: q- +

Addr: - +

Float: - +

Execute quote repeatedly while the quote returns a `TRUE` value. The quote should return a flag of either `TRUE` or `FALSE`, though `while` will treat any non-zero value as `TRUE`. +

Class: class:word | Namespace: global | Interface Layer: all

Example #1: @@ -3759,53 +5884,81 @@ Example #1: #10 [ dup n:put nl n:dec dup n:-zero? ] while
-

xor

Data: mn-o +

xor

+

Data: mn-o +

Addr: - +

Float: - +

Perform a bitwise XOR operation. +

Class: class:primitive | Namespace: global | Interface Layer: all


-

{

Data: - +

{

+

Data: - +

Addr: - +

Float: - +

Begin a set. This is intended to make creating sets a bit cleaner than using a quotation and `set:counteh-results`. +

Class: class:word | Namespace: set | Interface Layer: all


-

{{

Data: - +

{{

+

Data: - +

Addr: - +

Float: - +

Begin a lexically scoped area. +

Class: class:word | Namespace: global | Interface Layer: all


-

}

Data: -a +

}

+

Data: -a +

Addr: - +

Float: - +

Complete a set begun by `{`. Returns a pointer to the data. +

Class: class:word | Namespace: set | Interface Layer: all


-

}as

Data: f- +

}as

+

Data: f- +

Addr: - +

Float: - +

End an assembly section. +

Class: class:macro | Namespace: global | Interface Layer: all


-

}}

Data: - +

}}

+

Data: - +

Addr: - +

Float: - +

End a lexically scoped area. +

Class: class:word | Namespace: global | Interface Layer: all


- -Stack: 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 15415 15387 15415 15415 15415 [ TOS: 15415 ] diff --git a/glossary.forth b/glossary.forth index 7143f8a..0e724c6 100755 --- a/glossary.forth +++ b/glossary.forth @@ -157,8 +157,8 @@ the description. {{ :s:putfmt (s-) s:format s:put ; :s:putfmtx (s-) s:format [ $< [ '< s:put ] case $> [ '> s:put ] case $& [ '& s:put ] case c:put ] s:for-each ; - :h1 '

s:put s:putfmtx '

; - :p '

s:put s:putfmtx '

; + :h1 '

s:put s:putfmtx '

s:put nl ; + :p '

s:put s:putfmtx '

s:put nl ; :name field:name '%s h1 ; :data field:dstack '__Data:__%s\n p ; :address field:astack '__Addr:__%s\n p ;