7b2baba19c
FossilOrigin-Name: e959e65aa6d3ad548b054adff21894317755372f3909c7b7023976c4ec5f587c
4031 lines
133 KiB
HTML
4031 lines
133 KiB
HTML
<h1>)</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Provide a visual indication of a code group.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>*</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Multiply `n1` by `n2` and return the result.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #2 #6 *
|
|
#-1 #100 *</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>+</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Add `n1` to `n2` and return the result.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 #2 + </xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>,</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Store the specified value into the memory at `here` and increment `Heap` by 1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> $a , $b , $c , #0 ,</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>-</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Subtract `n2` from `n1` and return the result.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #2 #1 - </xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>---reveal---</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Switch to the exposed (public) portion of a lexical namespace.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>-eq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare two values for inequality. Returns `TRUE` if they are not equal or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 #2 -eq?
|
|
$a $b -eq?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>-if</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> fq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quotation if the flag is `FALSE`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>-if;</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> fq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quotation if the flag is `FALSE`. If false, also exit the word.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>/</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Divide `m` by `n` and return the result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>/mod</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-op<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Divide `n` by `m` and return the result and remainder.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>0;</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-n || n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>If `n` is zero, drop `n` and exit the current word. If non-zero, leave `n` alone and allow execution to continue.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>;</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>End the current definition.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>?dup</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-nn || n-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Duplicate top value on stack if not zero. If zero, do nothing.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 ?dup
|
|
#0 ?dup</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>ASCII:ACK</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:BEL</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:BS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:CAN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:CR</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DC1</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DC2</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DC3</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DC4</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DEL</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:DLE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:EM</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:ENQ</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:EOT</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:ESC</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:ETB</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:ETX</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:FF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:FS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:GS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:HT</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:LF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:NAK</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:NUL</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:RS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SI</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SO</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SOH</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SPACE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:STX</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SUB</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:SYN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:US</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ASCII:VT</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Refers to specific ASCII code.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> ASCII | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>Compiler</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. Holds the compiler state. If TRUE, the compiler is active. If FALSE, it is not.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>Dictionary</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. Holds a pointer to the most recent dictionary header.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>EOM</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Returns the last addressable memory address.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>FALSE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Returns `0`, the value used to indicate a FALSE result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>FREE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>Heap</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. Holds the address of the next available cell.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>I</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Access the loop index for the current loop. (For loops made using `times<with-index>`)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>J</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Access the parent loop index for the current loop. (For loops made using `times<with-index>`)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>K</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Access the grandparent loop index for the current loop. (For loops made using `times<with-index>`)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>NoEcho</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. If TRUE, allow display of the "ok" prompt and startup banner.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>RewriteUnderscores</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. When set to `TRUE`, RETRO will replace underscores in strings with spaces. When `FALSE`, RETRO does not.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>STRINGS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the address of the start of the temporary string pool.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>ScopeList</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. This holds some information used by `{{` and `}}`.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>TRUE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Returns `-1`, the value used to indicate a TRUE result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>TempStringMax</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. Holds the maximum length of a temporary string.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>TempStrings</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. Holds the number of temporary strings.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>Version</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Variable. This stores the version number.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>[</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Begin a quotation.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>]</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>End a quotation.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>again</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Close an unconditional loop. Branches back to the prior `repeat`.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>allot</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Allocate the specified number of cells from the `Heap`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'Buffer d:create #100 allot</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>and</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Perform a bitwise AND operation between the two provided values.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:contains-string?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sa-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the string value is in the array or`FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:contains?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> na-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the value is in the array or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:counted-results</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run a quote and construct a new array from the returned values. The quote should return the values and the number of values to put into the array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:dup</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-b<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Make a copy of an array. Return the address of the copy.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:filter</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aq-b<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>For each item in the initial array, run the specified quote. If the quote returns `TRUE`, copy the item into a new array. If `FALSE`, discard it. Returns a pointer to the new array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:for-each</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quote once for each item in the array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:from-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a new array with the characters in the source string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:length</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the length of a array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:make</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute quote. Return a new array containing the values the quote leaves on the stack. This is identical to doing `array:counted-results array:reverse`</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:map</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute quote once for each item in the array. Constructs a new array from the value returned by the quote.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:nth</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> an-b<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the actual address of the nth item in the array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:reduce</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> pnq-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Takes an array, a starting value, and a quote. This will apply the quote to each item in the array; the quote should consume two values and return one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>array:reverse</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-b<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Reverse the order of items in a array. This will return a new array.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> array | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>as{</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Begin an assembly section.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>banner</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a welcome message on startup.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>bi</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xqq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute q1 against x, then execute q2 against a copy of x.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #100 [ #10 * ] [ #10 - ] bi</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>bi*</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xyqq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute q1 against x and q2 against y.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 #20 [ #2 * ] [ #10 / ] bi*</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>bi@</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xyq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute q against x, then execute q against y.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 #20 [ #3 * ] bi@</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>buffer:add</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Append a value to the current buffer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:empty</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Reset the current buffer to an empty state.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:end</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a pointer to the current end of the active buffer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:get</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Remove the last value from the current buffer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:preserve</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Save and restore the current buffer before and after executing the specified quote.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:set</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Assign a new buffer as the current one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:size</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of cells in the buffer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>buffer:start</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the start address of the current buffer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> buffer | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>bye</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Exit RETRO.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>c:-consonant?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is a not consonant or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-digit?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is a not numeric digit or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-lowercase?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is not lowercase or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-uppercase?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is not uppercase or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-visible?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is not printable or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-vowel?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is not a vowel or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:-whitespace?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is not whitespace, or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:consonant?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is a consonant or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:digit?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is a numeric digit or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:get</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Read a single keypress.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>c:letter?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is an ASCII letter or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:lowercase?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is lowercase or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a single character.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:to-lower</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert character to lowercase equivalent.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:to-number</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert an ASCII digit character into the corresponding decimal value</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:to-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert character into a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:to-upper</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert character to uppercase equivalent.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:toggle-case</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert an ASCII character to the opposite case.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:uppercase?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is uppercase or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:visible?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is printable or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:vowel?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is a vowel or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>c:whitespace?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> c-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if character is whitespace, or FALSE otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> c | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>call</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Call a function.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>case</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nmq- || nmq-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>choose</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> fqq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute q1 if the flag is true (-1) or q2 if the flag is false (0). Only these flags are valid when using `choose`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>class:data</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n- || n-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Class handler for data structures.</p>
|
|
<p>Interpret Time:
|
|
Keep the address or value on the stack.</p>
|
|
|
|
<p>Compile Time:
|
|
Compile the value or address as a literal into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> class | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>class:macro</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Class handler for compiler macros (immediate words)</p>
|
|
<p>Interpret Time:
|
|
Execute the function at the provided address.</p>
|
|
|
|
<p>Compile Time:
|
|
Execute the function at the provided address.</p>
|
|
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> class | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>class:primitive</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Class handler for primitive words (words which map to Nga instructions)</p>
|
|
<p>Interpret Time:
|
|
Execute the function.</p>
|
|
|
|
<p>Compile Time:
|
|
Compile the machine code in the definiton into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> class | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>class:word</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Class handler for normal words.</p>
|
|
<p>Interpret Time:
|
|
Execute the function at the provided address.</p>
|
|
|
|
<p>Compile Time:
|
|
Compile a call to the specified address into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> class | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>clock:day</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current day.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>clock:hour</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current hour.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>clock:minute</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current minute.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>clock:month</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current month.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>clock:second</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current second.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>clock:year</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current year.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> clock | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>compile:call</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compile a call to the specified address into the current definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> compile | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>compile:jump</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compile a jump to the specified address into the current definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> compile | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>compile:lit</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compile the code to push a number to the stack into the current definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> compile | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>compile:ret</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compile a return instruction into the current definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> compile | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>compiling?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if compiler is on or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>const</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ns-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a constant returning the specified value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>copy</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sdl-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Copy `l` cells from memory at `s` to the memory at `d`. These should not overlap.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>curry</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nq-q<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Bind a value to a function and return a new quote that calls the bound action.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Inline a numeric value to the current assembly segment.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:add-header</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> saa-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:class</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> d-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a dictionary header, return the class field.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:create</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a new dictionary header named the specified string. The new header will point to `here` and have a class of `class:data`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:for-each</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:last</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -d<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the most recent dictionary header.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:last<class></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a pointer to the class field of the most recent dictionary header.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:last<name></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a pointer to the name field of the most recent dictionary header.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:last<xt></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a pointer to the xt field of the most recent dictionary header.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:link</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> d-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a dictionary header, return the link field.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:lookup</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-d<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Lookup the specified name in the dictionary and return a pointer to its dictionary header. This returns zero if the word is not found.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:lookup-xt</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-d<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Lookup the specified address in the dictionary and return a pointer to its dictionary header. This returns zero if the word is not found.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:name</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> d-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a dictionary header, return the name field.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:words</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a list of all named items in the `Dictionary`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:words-with</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a list of all named items in the `Dictionary` that contain the provided substring.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>d:xt</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> d-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a dictionary header, return the xt field.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> d | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>data</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Change the class of the most recently defined word to `class:data`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>depth</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>dip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nq-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Temporarily remove n from the stack, execute the quotation, and then restore n to the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>does</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Attach an action to the most recently created word. This is used in a manner similar to CREATE/DOES> in traditional Forth.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>drop</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Discard the top value on the stack.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>drop-pair</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Remove top two items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>dump-stack</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display the items on the data stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>dup</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-nn<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Duplicate the top item on the stack.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>dup-pair</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-nmnm<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Duplicate the top two items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>e:-INF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Negative infinity. For encoded floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:-inf?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Is encoded value negative infinity?</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:INF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Infinity. For encoded floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:MAX</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Maximum value. For encoded floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:MIN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Minimum value. For encoded floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:NAN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Not a Number. For encoded floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:clip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-U<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constrain the encoded value to the allowable range.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:inf?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Is encoded value infinity?</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:max?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Is encoded value at the maximum?</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:min?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Is encoded value at the minimum?</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:n?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the encoded value is a valid number, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:nan?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Is encoded value a Nan?</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display an encoded number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:to-f</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -n</p>
|
|
</div>
|
|
<p>Decode an encoded floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>e:zero?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> u-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the value is zero, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> e | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>eq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare two values for equality. Returns `TRUE` if they are equal or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 #2 eq?
|
|
$a $b eq?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>err:notfound</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Error handler. Called when a word is not found by `interpret`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> err | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>f:*</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Multiply two floating point numbers, returning the result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .3.1415 .22 f:*</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:+</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Add two floating point numbers, returning the result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .3.1 .22 f:+</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:-</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Subtract F2 from F1 returing the result.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .22.3 .0.12 f:-</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:-INF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -n</p>
|
|
</div>
|
|
<p>Return a value corresponding to negative infinity</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:-eq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-</p>
|
|
</div>
|
|
<p>Compare two floating point values for inequality. Returns `TRUE` if they are not equal or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:-inf?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return `TRUE` if floating point value is -INF or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:/</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Divide floating point value F1 by F2.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:E</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>Return the floating point value for Euler's number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:E1</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -f</p>
|
|
</div>
|
|
<p>Hook. Return a constant used as the scaling factor for the e: words.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:INF</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -n</p>
|
|
</div>
|
|
<p>Return a value corresponding to positive infinity</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:NAN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -n</p>
|
|
</div>
|
|
<p>Return a value corresponding to NaN</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:PI</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>Return the floating point value for PI.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:abs</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the absolute value for a floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:acos</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the arc cosine of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:adepth</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of items on the alternate floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:asin</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the arc sine of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:atan</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the arc tangent of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:between?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> nlu-</p>
|
|
</div>
|
|
<p>Return TRUE if number is between the lower (l) and upper (u) bounds. If not, return FALSE. This is inclusive of the limits.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .3 .1 .100 f:between?
|
|
.100 .200 .300 f:between?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:case</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> nm-n</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:ceiling</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the smallest integral value greater than or equal to the specified value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:cos</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the cosine of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:dec</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> n-m</p>
|
|
</div>
|
|
<p>Decrement n by one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .100 f:dec</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:depth</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of items on the floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:drop</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Discard the top item on the floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:drop-pair</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-</p>
|
|
</div>
|
|
<p>Remove top two items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:dump-astack</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display the items on the alternate floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:dump-stack</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display the items on the floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:dup</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-FF</p>
|
|
</div>
|
|
<p>Duplicate the top item on the floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:dup-pair</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> nm-nmnm</p>
|
|
</div>
|
|
<p>Duplicate the top two items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:eq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-</p>
|
|
</div>
|
|
<p>Compare two floating point values for equality. Returns `TRUE` if they are equal or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:fetch</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -n</p>
|
|
</div>
|
|
<p>Fetch a stored floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:floor</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Perform a mathmatical floor operation on the floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:gt?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-</p>
|
|
</div>
|
|
<p>Compare two floating point values for greater than.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:inc</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> n-m</p>
|
|
</div>
|
|
<p>Increment n by one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .100 f:inc</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:inf?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return `TRUE` if floating point value is INF or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:limit</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> nlu-m</p>
|
|
</div>
|
|
<p>Return n if it is within the lower (l) and upper (u) bounds. If outside the bounds, return the closes boundary value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .-10 .5 .8 f:limit
|
|
.10 .1 .15 f:limit</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:log</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Return log(F1) for base F2 for floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:lt?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-</p>
|
|
</div>
|
|
<p>Compare two floating point values for less than.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:max</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> mn-o</p>
|
|
</div>
|
|
<p>Return the greater of two values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .1 .7 f:max
|
|
.-8 .-10 f:max</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:min</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> mn-o</p>
|
|
</div>
|
|
<p>Return the lesser of two values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .1 .7 f:min
|
|
.-8 .-10 f:min</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:nan?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return `TRUE` if floating point value is NaN or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:negate</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Invert the sign of the floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .3.1415 f:negate</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:negative?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return `TRUE` if floating point value is negative or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:nip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> NM-M</p>
|
|
</div>
|
|
<p>Remove the second item from the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:over</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FG-FGF</p>
|
|
</div>
|
|
<p>Put a copy of the second floating point value over the top one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:pop</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>Pop a floating point value from the alternate stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:positive?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return `TRUE` if floating point value is positive or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:power</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FF-F</p>
|
|
</div>
|
|
<p>Return F1^F2 for floating point values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:push</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Push a floating point value to an alternative stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Display a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:rot</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> abc-bca</p>
|
|
</div>
|
|
<p>Rotate the top three values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:round</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> f-f</p>
|
|
</div>
|
|
<p>Round a floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:sign</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Return 1 if the floating point value is positive or -1 if it is negative.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> .3.1415 f:sign</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>f:signed-sqrt</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the square root of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:signed-square</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> f-f</p>
|
|
</div>
|
|
<p>Return the square of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:sin</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the sine of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:sqrt</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the square root of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:square</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> f-f</p>
|
|
</div>
|
|
<p>Return the square of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:store</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> n-</p>
|
|
</div>
|
|
<p>Store a floating point value to the specified memory location.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:swap</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FG-GF</p>
|
|
</div>
|
|
<p>Exchange the top and second items on the floating point stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:tan</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-F</p>
|
|
</div>
|
|
<p>Return the tangent of a floating point number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:to-e</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -u<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> n-</p>
|
|
</div>
|
|
<p>Encode the floating point value to an integer.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:to-number</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Convert a floating point value into a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:to-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> F-</p>
|
|
</div>
|
|
<p>Convert a floating point value into a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:tuck</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> FG-GFG</p>
|
|
</div>
|
|
<p>Tuck a copy of the top floating point value under the second one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>f:tuck</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> nm-mnm</p>
|
|
</div>
|
|
<p>Put a copy of the top item on the stack under the second one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> f | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>fetch</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Fetch the value stored at the specified address.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> &Version fetch</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>fetch-next</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-an<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Fetch the value stored at the specified address. Returns the next address and the value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>file:A</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant for opening a file in APPEND mode.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:R</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant for opening a file in READ mode.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:R+</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant for opening a file in READ & WRITE mode.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:W</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant for opening a file in WRITE mode.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:close</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> h-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, close the file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:delete</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Delete the named file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:exists?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file name, return `TRUE` if it exists or `FALSE` if it does not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:flush</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> h-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, flush any pending writes to disk.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:for-each-line</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file name, open it and run the quote once for each line in the file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:open</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sm-h<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Open a named file (s) with the given mode (m). Returns a handle identifying the file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '/etc/motd file:R file:open</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>file:open<for-append></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-nn<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Open a file for reading & writing. Returns the size (NOS) and a file ID (TOS)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:open<for-reading></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-nn<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Open a file for reading. Returns the size (NOS) and a file ID (TOS)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:open<for-writing></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Open a file for writing. Returns the file ID</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:read</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> h-c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, read and return the next character in it.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:read-line</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> f-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, read a line and return a pointer to it.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:seek</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nh-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Move the current offset into a file to the specified one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:size</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> h-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, return the size of the file (in bytes).</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:slurp</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> as-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given an address and a file name, read the file contents into memory starting at the address.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:spew</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a string (s1) and a file name (s2), write the string into the file, replacing any existing cotent.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:tell</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> h-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given a file handle, return the current offset in the file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>file:write</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ch-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Write a character to the file represented by the handle.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> file | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>gopher:get</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> asns-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Takes an address, a server, a port, and a selector. Fetch the resource and store it at address. Return the number of bytes received.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> gopher | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> here 'forthworks.com #70 '/ gopher:get
|
|
here s:put</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>gt?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare n1 and n2. Return `TRUE` if n1 is greater than n2, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>gteq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare n1 and n2. Return `TRUE` if n1 is greater than or equal to n2, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>here</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the next free address in memory.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>hook</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Add a hook point into the current word. This should only be used as the first word in a definition.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> global</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> :foo hook ;</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>i</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Assemble the instructions specified by the string into the current assembly scope.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>if</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> fq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quote if the flag is `TRUE`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>if;</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> fq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quotation if the flag is `TRUE`. If true, also exit the word.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>image:save</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Save the current system to a new image file.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> image | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>immediate</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Change the class of the most recently defined word to `class:macro`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>include</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run the code in the specified file. </p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>interpret</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Interpret a single input token.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '#100 interpret
|
|
'words interpret</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>io:enumerate</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of I/O devices.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>io:file-operation</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trigger a file I/O operation. This is not intended to be used directly.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>io:float-operation</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trigger a floating point operation. This is not intended to be used directly.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>io:invoke</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Invoke an interaction with an I/O device.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>io:query</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-mN<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Ask an I/O device to identify itself. Returns a version (m) and device ID (N).</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>io:scan-for</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Scan the I/O devices for a device with a specified ID. Returns the device number, or -1 if not found.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>io:unix-syscall</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trigger a Unix system call. This is not intended to be used directly.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> io | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>listen</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run interactive "listener" (a REPL).</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>lt?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare n1 and n2. Return `TRUE` if n1 is less than n2, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>lteq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare n1 and n2. Return `TRUE` if n1 is less than or equal to n2, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>mod</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Divide `n` by `m` and return the remainder.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:-zero?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is not zero, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:MAX</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the maximum value that will fit in a cell.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:MIN</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the minimum value that will fit in a cell.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:abs</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the absolute value of a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 n:abs
|
|
#-10 n:abs
|
|
</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:between?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nlu-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if number is between the lower (l) and upper (u) bounds. If not, return FALSE. This is inclusive of the limits.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #3 #1 #100 n:between?
|
|
$q $a $b n:between?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:dec</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Decrement n by one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #100 n:dec</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:even?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is even, or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #12 n:even?
|
|
#11 n:even?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:inc</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Increment n by one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #100 n:inc</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:limit</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nlu-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return n if it is within the lower (l) and upper (u) bounds. If outside the bounds, return the closes boundary value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #-10 #5 #8 n:limit
|
|
#10 #1 #15 n:limit</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:max</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the greater of two values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 #7 n:max
|
|
#-8 #-10 n:max</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:min</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the lesser of two values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #1 #7 n:min
|
|
#-8 #-10 n:min</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:negate</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Invert the sign of a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 n:negate
|
|
#-10 n:negate</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:negative?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is negative, or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:odd?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is odd, or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:positive?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is positive, or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:pow</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> bp-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return base (b) to power (p).</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:random</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a random number</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> rre, ri</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> n:random n:put</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>n:sqrt</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the square root of a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:square</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the square of a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:strictly-positive?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return TRUE if number is greater than zero or FALSE if it is zero or less.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:to-float</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>Convert a number into a floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>n:to-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert a number into a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>n:zero?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if number is zero, or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> n | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>nip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Remove the second item from the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>nl</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a newline.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>not</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-m<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Perform a logical NOT operation.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>or</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Perform a bitwise OR between the provided values.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>over</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-nmn<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Put a copy of n over m.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>parse-until</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Read input from stdin (via `c:get`) until the returned character is matched by the quote. Returns a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> all | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> :read-until-period (-s)
|
|
[ $. eq? ] parse-until ;</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>pb:get</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Copy a string from the pasteboard to the specified address.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> pb | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>pb:length</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the length of the string on the pasteboard.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> pb | <b>Interface Layer:</b> iOS</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp>pb</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>pb:set</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Copy a string to the pasteboard.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> pb | <b>Interface Layer:</b> iOS</p>
|
|
<hr/>
|
|
<h1>pop</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> n-<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Move a value from the return stack to the data stack.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:!</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ns-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Store a value into a variable.</p>
|
|
<p>Interpret Time:
|
|
Store a value into the named variable.</p>
|
|
|
|
<p>Compile Time:
|
|
Compile the code to store a value into a named variable.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:"</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a string.</p>
|
|
<p>Interpret Time:
|
|
Keep string as permanent. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space.</p>
|
|
|
|
<p>Compile Time:
|
|
Keep string as permanent. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space. Then compile the string into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:#</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a number.</p>
|
|
<p>Interpret Time:
|
|
Convert the string into a number and leave on the stack.</p>
|
|
|
|
<p>Compile Time:
|
|
Convert the string into a number and compile into the current definition as a literal.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:$</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-c<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as an ASCII character.</p>
|
|
<p>Interpret Time:
|
|
Fetch first character from string. Leave on stack.</p>
|
|
|
|
<p>Compile Time:
|
|
Fetch first character from the string. Compile into the current definition as literal.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:&</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a pointer to a named item.</p>
|
|
<p>Interpret Time:
|
|
Lookup name in dictionary, return contents of the xt field on the stack.</p>
|
|
|
|
<p>Compile Time:
|
|
Lookup name in dictionary, compile code to push the contents of the xt field into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:'</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a string.</p>
|
|
<p>Interpret Time:
|
|
Move string into temporary buffer. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space.</p>
|
|
|
|
<p>Compile Time:
|
|
Move string into temporary buffer. If `RewriteUnderscores` is `TRUE`, replace all instances of _ with space. Then compile the string into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:(</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a comment.</p>
|
|
<p>Interpret Time:
|
|
Discard the string.</p>
|
|
|
|
<p>Compile Time:
|
|
Discard the string.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:.</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>prefix::</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a new definition.</p>
|
|
<p>Interpret Time:
|
|
Create a header pointing to `here` with the provided string as the name. Sets class to `class:word`.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:@</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Fetch from a stored variable.</p>
|
|
<p>Interpret Time:
|
|
Fetch a value from a named variable.</p>
|
|
|
|
<p>Compile Time:
|
|
Compile the code to fetch a value from a named variable into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:`</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Process token as a bytecode.</p>
|
|
<p>Interpret Time:
|
|
Discard the string.</p>
|
|
|
|
<p>Compile Time:
|
|
Convert the string to a number and use `,` to inline it into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>prefix:|</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>POSTPONE equivalent.</p>
|
|
<p>Interpret Time:
|
|
Discard the string.</p>
|
|
|
|
<p>Compile Time:
|
|
Convert the string to a number and use `,` to inline it into the current definition.</p>
|
|
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> prefix | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>primitive</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Change the class of the most recently defined word to `class:primitive`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>push</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -n<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Move a value from the data stack to the return stack.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>r</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Lookup a reference by name and inline its pointer to the current assembly segment.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>random:mersenne</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a random number using a mersenne shifter</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>random:mersenne:set-seed</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Seed random:mersenne with the specified value</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>random:xoroshiro128**</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a random number using xoroshiro128**</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>random:xoroshiro128**:jump</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Updates the internal xoroshiro128** state registers with the equivalent of 2^64 calls to random:xoroshiro128**.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>random:xoroshiro128**:set-seed</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Seed random:xoroshiro128** with the specified value</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>random:xoroshiro128**:test-seed</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nnnn-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Sets the internal xoroshiro128** state registers s0..s3 starting with TOS.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> random | <b>Interface Layer:</b> rre, ri</p>
|
|
<hr/>
|
|
<h1>reclass</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Change the class handler of the most recently defined word to the specified one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>reorder</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...ss-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Restructure the order of items on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>repeat</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Begin an unconditional loop.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>reset</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Remove all items from the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>rot</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> abc-bca<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Rotate the top three values.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s,</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compile the code needed to push a string pointer to the stack and inline the string data into the current definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:ASCII-LETTERS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Returns a string of the ASCII letters (upper and lower case)</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:ASCII-LOWERCASE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Returns a string of the ASCII letters in lowercase</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:ASCII-UPPERCASE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Returns a string of the ASCII letters in uppercase</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:DIGITS</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Return a string of characters recognized as numeric digits.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:PUNCTUATION</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Return a string of characters recognized as punctuation.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:WHITESPACE</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Constant. Returns a string of characters recognized as whitespace.</p>
|
|
<p><b>Class:</b> class:data | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:append</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a new string consisting of s1 followed by s2.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:case</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sSq- || sSq-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:chop</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Remove the last character from a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:const</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a constant named s2, returning a pointer to s1. This will use `s:keep` to preserve the original string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:contains-char?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sc-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the character is present in the string or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:contains-string?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return `TRUE` if the second string is present in the first string or `FALSE` otherwise.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:copy</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sa-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Copy a string (s) to a destination (a). This will include the terminator character when copying.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:empty</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return an empty string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:eq?</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-f<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Compare two strings for equality. Return `TRUE` if identical or `FALSE` if not.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'hello 'again s:eq?
|
|
'test 'test s:eq?</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>s:evaluate</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Evaluate string as if it was typed into the interpreter.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:filter</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sq-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:for-each</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute the quote once for each value in the string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:format</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ...s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Construct a new string using the template passed and items from the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:get</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Read input from standard in (via `c:get`) until a CR or LF is encountered. Returns a strig.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> all | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>s:hash</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Calculate a hash value for a string. This uses the djb2 algorithm.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:index-of</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sc-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the location of the first instance of the specified character in the string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:index-of-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the location of the first instance of the specified substring (s2) in the string (s1). Returns -1 if not found.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:keep</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Store a string into the heap and return a pointer to the start of it.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:left</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sn-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a new string containing the first `n` characters from the source string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:length</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of characters in a string, excluding the NULL terminator.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:map</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sq-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:prepend</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a new string consisting of s2 followed by s1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:replace</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sss-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Replace the first instance of s2 in s1 with s3.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:reverse</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Reverse the order of ASCII characters in a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:right</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sn-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a new string containing the specified number of characters from the right side of the string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:skip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Internal helper function used to skip over a string in a definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:split</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sc-ss<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Split a string on the first occurrance of the specified character.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:split-on-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-ss<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'Hello_Brave_World! 'Brave s:split-on-string s:put nl s:put nl</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>s:substr</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sfl-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Extract a substring from the specified string. This will take the characters starting at `f` and extend `l` characters in length.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:temp</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Move a string into the temporary string buffers.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:to-float</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -F</p>
|
|
</div>
|
|
<p>Convert a string representation into a floating point value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>s:to-lower</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert uppercase ASCII characters in a string to lowercase.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:to-number</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert a string to a number.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:to-upper</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Convert lowercase ASCII characters in a string to uppercase.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:tokenize</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sc-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Takes a string and a character to use as a separator. It splits the string into substrings and returns an array containing pointers to each of them.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:tokenize-on-string</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Takes a string (s1) and a substring (s2) use as a separator. It splits the string into substrings and returns as array containing pointers to each of them.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>s:trim</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trim leading and trailing whitespace from a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '__hello__ s:trim</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>s:trim-left</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trim leading whitespace from a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '__hello__ s:trim-left</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>s:trim-right</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Trim trailing whitespace from a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> s | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '__hello__ s:trim-right</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>set-hook</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aa-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Patch the hook point in a2 to point to a1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> :foo hook ;
|
|
:bar #1 ;
|
|
&bar &foo set-hook</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>shift</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Peform a bitwise shift of m by n bits. If n is positive, shift right. If negative, the shift will be to the left.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>sip</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nq-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run quote. After execution completes, put a copy of n back on top of the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>sp</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a space (`ASCII:SPACE`)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> :spaces (n-) [ sp ] times ;
|
|
#12 spaces</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>store</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> na-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Store a value into the specified address.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'Base var
|
|
#10 &Base store</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>store-next</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> na-a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Store a value into the specified address and return the next address.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>swap</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-mn<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Exchange the position of the top two items on the stack</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>sys:argc</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of arguments passed to the program.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> sys | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>sys:argv</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Given an argument number, return the argument as a string.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> sys | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>sys:name</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the filename of the program being run.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> sys | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>tab</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a tab (`ASCII:HT`)</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>times</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run the specified quote the specified number of times.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #12 [ $- c:put ] times</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>times<with-index></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run a quote the specified number of times, tracking the loop index in `I`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>tri</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xqqq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Apply q1 against x, then q2 against a copy of x, and finally q3 against another copy of x.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>tri*</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xyzqqq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Apply q1 against x, q2 against y, and q3 against z.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>tri@</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> xyzq-?<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Apply q against x, then against y, and finally against z.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>tuck</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nm-mnm<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Put a copy of the top item on the stack under the second one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>unhook</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Reset the hook point in a1 to the default definition.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> :foo hook #1 ;
|
|
:bar #2 ;
|
|
&bar &foo set-hook
|
|
&foo unhook</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>unix:chdir</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Change the current working directory to the specified one.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> '/etc unix:chdir</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>unix:count-files-in-cwd</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the number of files (and subdirectories) in the current working directory</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:exec0</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute a process by running the application specified by s.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:exec1</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ss-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute a process by running the application specified by s1. Pass s2 as an argument.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:exec2</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sss-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute a process by running the application specified by s1. Pass s2 and s3 as arguments.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:exec3</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ssss-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Execute a process by running the application specified by s1. Pass s2, s3, and s4 as arguments.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:exit</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Exit the current process, returning the specified return code.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:for-each-file</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Run a quote once for each file or subdirectory in the current directory. The quote will receive the file name as a string and should consume this and return nothing on the stack.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:fork</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Fork the current process. Returns a PID.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:get-cwd</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -s<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the current working directory</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:getenv</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sa-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Get an environment variable. Provide the name and an address to store it in.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'SHELL s:empty [ unix:getenv ] sip s:put nl</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>unix:getpid</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return the PID of the current process.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:io:n:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a number (in base 10) to the standard output device. This is faster than `n:put`, but not portable.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix:io | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:io:s:put</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Display a string to stdout. This is faster than `s:put`, but not portable.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix:io | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:kill</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> nn-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Terminates a process. Takes a process and a signal to send.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:pclose</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Close a pipe.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:popen</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sn-n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:putenv</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Takes a string in the form `name=value` and sets an environment variable named `name` to `value`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'EDITOR=vi unix:putenv</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>unix:sleep</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> n-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Sleep for the specified number of seconds.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:system</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Runs another application using the system shell and returns after execution is completed.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'ls_-lh_/etc unix:system</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>unix:time</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Return a timestamp.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:wait</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -n<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Waits for a child process to complete. This maps to the wait() system call.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>unix:write</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> sh-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Write a string to the specified file handle.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> unix | <b>Interface Layer:</b> rre</p>
|
|
<hr/>
|
|
<h1>until</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 [ dup n:put nl n:dec dup n:zero? ] until</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>v:dec</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Decrement the value stored at the specified address by 1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:dec-by</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> na-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Decrement the value stored at the specified address by the specified value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:inc</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Increment the value stored at the specified address by 1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:inc-by</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> na-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Increment the value stored at the specified address by the specified value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:limit</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> alu-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:off</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Set a variable to 0.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:on</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> a-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Set a variable to -1.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:preserve</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Make a copy of the value at the address, then run the quote. Once the quote completes, restore the address to the specified value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>v:update-using</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> aq-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> v | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>var</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> s-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a variable. The variable is initialized to 0.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> 'Base var</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>var<n></h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> ns-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Create a variable with the specified initial value.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 'Base var<n>
|
|
</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>while</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> q-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>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`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<p><b>Example:</b> <br>
|
|
<br>
|
|
<xmp> #10 [ dup n:put nl n:dec dup n:-zero? ] while</xmp>
|
|
</p>
|
|
<hr/>
|
|
<h1>xor</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> mn-o<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Perform a bitwise XOR operation.</p>
|
|
<p><b>Class:</b> class:primitive | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>{</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Begin an array. This is intended to make creating arrays a bit cleaner than using a quotation and `array:counted-results`.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>{{</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Begin a lexically scoped area.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>}</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -a<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>Complete an array begun by `{`. Returns a pointer to the data.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>}as</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> f-<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>End an assembly section.</p>
|
|
<p><b>Class:</b> class:macro | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|
|
<h1>}}</h1>
|
|
<div style='margin-left: 1em;'><p><b>Data:</b> -<br>
|
|
<b>Addr:</b> -<br>
|
|
<b>Float:</b> -</p>
|
|
</div>
|
|
<p>End a lexically scoped area.</p>
|
|
<p><b>Class:</b> class:word | <b>Namespace:</b> global | <b>Interface Layer:</b> all</p>
|
|
<hr/>
|