| Package | Description |
|---|---|
| org.rigwit.forth |
Forth Virtual Machine
|
| org.rigwit.forth.words |
Forth Word Sets.
|
| Modifier and Type | Method and Description |
|---|---|
static WordList |
WordList.find(VM vm,
java.lang.String name)
Return a named word list if available or
null if the
word list has not been defined. |
static void |
WordList.forget(VM vm,
int addr)
Remove all words with a definition later than the specified
address.
|
static WordList |
WordList.forWordList(VM vm,
java.lang.String name)
Create a new word list, the new list has no words and is
case sensitive.
|
java.lang.String |
XT.readable(VM vm)
Return a string representation of the XT suitable for output
to the user.
|
abstract ForthReader |
ForthReader.restoreInput(VM vm)
Restore the current input environment from the system stack.
|
ForthReader |
ForthStandardReader.restoreInput(VM vm) |
ForthReader |
ForthStreamReader.restoreInput(VM vm)
Restore the current input environment from the system stack.
|
ForthReader |
ForthStringReader.restoreInput(VM vm) |
ForthReader |
ForthTerminalReader.restoreInput(VM vm)
Restore the current input environment from the system stack.
|
abstract void |
ForthReader.saveInput(VM vm)
Save the current input parameters on the system stack.
|
void |
ForthStandardReader.saveInput(VM vm) |
void |
ForthStreamReader.saveInput(VM vm)
Save the current input parameters on the system stack.
|
void |
ForthStringReader.saveInput(VM vm) |
void |
ForthTerminalReader.saveInput(VM vm)
Save the current input parameters on the system stack.
|
| Constructor and Description |
|---|
ForthLoader(VM vm)
Initialise the loader to load files from the default
Java classpath into the given Virtual Machine.
|
ForthLoader(VM vm,
java.lang.String pathList)
Initialise the loader to load files from the given path
into the given Virtual Machine.
|
ForthStringReader(VM vm,
int offset,
int length)
Construct a reader to read a string directly form the
Forth data space, starting at offset and lasting for length
characters.
|
ForthTerminalReader(VM vm)
Initialise the reader, using the standard input stream for
input and identifying the input source as "Terminal".
|
Kernel(VM vm) |
Memory(VM machine,
int size)
Initialise the data space for the current virtual machine.
|
XT(VM vm)
Construct an XT without a handler.
|
XT(VM vm,
java.lang.Object instance,
java.lang.String name)
Construct an XT with a handler obtained from the given method
name in the given class.
|
| Modifier and Type | Field and Description |
|---|---|
protected VM |
WordSet.vm
The current virtual machine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WordSet.setVirtualMachine(VM machine)
Set the virtual machine to reflect the vm the wordset has been
loaded into.
|