| Package | Description |
|---|---|
| org.rigwit |
A Forth Interpreter.
|
| org.rigwit.forth |
Forth Virtual Machine
|
| org.rigwit.forth.words |
Forth Word Sets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Forth.interpretFile(java.lang.String filename)
Interpret the given file as Forth source code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VM.reportThrowCode(ForthException ex)
Generate an error report, sending it to the current output
stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Kernel.colonDef(XT xt)
The colon definition hander.
|
XT |
VM.create()
Parses the name from the input stream and create a new user
definition XT adding it to the current word list.
|
java.lang.String |
VM.createName()
Parses the name from the input stream and create a new user
definition XT, but does not add the definition to the current
word list.
|
int |
Kernel.doesDef(XT xt)
The does definition handler.
|
int |
Kernel.execute(XT xt)
Execute the given XT, converting any Java based exceptions into
the equivalent Forth Exceptions.
|
int |
Memory.getBufferedInput(int addr)
Read a character from a given location within the input
buffer.
|
java.lang.Object |
Memory.getCell(int addr)
Return the Cell at the given address within the memory.
|
int |
Memory.getChar(int addr)
Read a character from a given address in the memory.
|
void |
VM.interpret()
Main text interpreter loop.
|
void |
ForthLoader.load(java.lang.String packageName)
Search for a given Forth package (packageName) in
the configured search paths, interpreting the file using the
configured Virtual Machine.
|
void |
WordList.loadForth(java.lang.String fileName)
Read and interpret a forth file, placing all definitions in
the current word list.
|
boolean |
WordList.loadJava(java.lang.String className)
Load the word list with definitions from a given Java primitives
class file.
|
void |
Memory.setCell(int addr,
java.lang.Object item)
Set an cell aligned location in the memory to a given item.
|
void |
Memory.setChar(int addr,
int ch)
Set the character at the character aligned address in memory
to the character given.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CoreWords.abort(XT xt)
Empty the data stack and perform the function of
Quit,
which includes emptying the return stack, without displaying
a message. |
void |
CoreWords.abortQuote(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.begin(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.bracketCompile(XT xt)
Append the execution semantics of the definition represented
by
xt to the execution semantics of the current
definition. |
void |
CoreWords.bracketTick(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.bufferColon(XT xt)
Skip leading space delimiters.
|
void |
CoreWords.CASE(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.create(XT xt)
Skip leading space delimiters.
|
int |
CoreWords.defaultDefer(XT xt) |
void |
CoreWords.defer(XT xt)
Stack{"
|
int |
CoreWords.deferDef(XT xt) |
int |
CoreWords.doAbortQuote(XT xt) |
void |
CoreWords.does(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.dotQuote(XT xt)
Display a string immediately.
|
void |
CoreWords.endCase(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.endOf(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.escapedString(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.evaluate(XT xt)
Interpret the string (c-addr u).
|
void |
CoreWords.execute(XT xt)
Remove
xt from the stack and perform the semantics
identified by it. |
void |
CoreWords.format(XT xt)
Divide the double-cell top (ud1) by the current radix,
returning the quotient (ud2) and converting the remainder
into a character, adding it to the start of the pictured
numeric output string.
|
void |
CoreWords.formatS(XT xt)
Convert all digits for the double-cell top (ud1) according to
the rule for
# until the quotient is zero, returning
the zero quotient (ud2). |
void |
CoreWords.formatStart(XT xt)
Initialise the pictured numeric output conversion process.
|
void |
CoreWords.hold(XT xt)
Add the character (top) to the start of the pictured numeric
output string.
|
void |
CoreWords.holds(XT xt)
Adds the string (c-addr u) to the start of the pictured
numeric output string.
|
void |
CoreWords.marker(XT xt)
Skip leading space delimiters.
|
void |
CoreWords.of(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.postpone(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.repeat(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.sign(XT xt)
If top (n) is negative, add a minus sign to the start of the
pictured numeric output string.
|
void |
CoreWords.UNTIL(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|
void |
CoreWords.value(XT xt)
Skip leading space delimiters.
|
void |
CoreWords.variable(XT xt)
Skip leading space delimiters.
|
void |
CoreWords.WHILE(XT xt)
Interpret:
Interpretation semantics for this word are undefined.
|