public class ToolWords extends WordSet
Constructor and Description |
---|
ToolWords() |
Modifier and Type | Method and Description |
---|---|
void |
bye(XT xt)
Return control to the host operating system, if any.
|
void |
displayStack(XT xt)
Copy and display the values currently on the data stack.
|
void |
dump(XT xt)
Display the contents of top (u) consecutive addresses
starting at next (addr).
|
void |
ELSE(XT xt) |
void |
IF(XT xt) |
void |
javaComment(XT xt) |
void |
nextArg(XT xt)
Get the next argument from the command line, consuming it;
if there is no argument left, return 0 0.
|
void |
THEN(XT xt) |
setVirtualMachine
@Primitive(value=".S") @Stack(value=" -- ") public void displayStack(XT xt) throws java.lang.NoSuchMethodException
.S
is a debugging convenience found on almost all
Forth systems. It is universally mentioned in Forth texts.java.lang.NoSuchMethodException
@Stack(value="addr u -- ") public void dump(XT xt)
xt
- @Stack(value=" -- ") public void bye(XT xt)
@Primitive(value="[IF]") @Immediate public void IF(XT xt) throws java.io.IOException
java.io.IOException
@Primitive(value="[ELSE]") @Immediate public void ELSE(XT xt) throws java.io.IOException
java.io.IOException
@Primitive(value="[THEN]") @Immediate public void THEN(XT xt)
@Primitive(value="/**") @Immediate public void javaComment(XT xt) throws java.io.IOException
java.io.IOException
@Primitive(value="next-arg") @Stack(value=" -- c-addr u") public void nextArg(XT xt)