-
Class Summary
| Class |
Description |
| CoreWords |
Primitives for the Core and Core Ext wordsets.
|
| DoubleWords |
Primitives for the Double and Double-Ext wordsets.
|
| TestWords |
Based on the TestWords Harness by John Hayes.
|
| ToolWords |
Primitives for the Tool and Tool-Ext Wordsets.
|
| WordSet |
The superclass for Java primitive classes.
|
Package org.rigwit.forth.words Description
Forth Word Sets.
A number of standard word sets are defined in the various classes.
All of the the classes extend the WordSet
class, which provides access to the Forth Virtual Machine via a
vm field.
These files include:
- Java Primitives, Forth words written in Java.
- Java Helpers, Java methods and fields that are not reflected
as Forth words.
- High-Level Forth Source.
- Environment Queries, as Java methods.
See
The Word Set Abstract Class
for further details.
The Current word sets/classes are:
CoreWords
- All 182 of the 200x Core and Core Ext words have been implemented.
DoubleWords
- Just enough words from the 200x Double and Double Ext words
to run the core test suite:
2VARIABLE and DU<.
TestWords
- The John Hays test harness. In addition to the test harness
(
{, -> and }) it also
provides:
- +echo ( -- )
- Echo the input string to the output device as it is being
parsed.
- -echo ( -- )
- Disable the input echo of input strings.
ToolWords
- Words from the 200x Tools and Tools Ext word sets.
- The words necessary to run the core test suite:
[IF],
[ELSE] and
[THEN].
- A few words to help in the development:
BYE,
.S,
? and
DUMP.
- The following non standard words have also been defined:
- /** ( -- )
- Read a multi-line comment terminated with the character
sequence "
*/".
- next-arg ( -- c-addr u )
- Returns the next argument from the command line.
Return 0 0 if there not arguments left.