Package org.rigwit.forth

Forth Virtual Machine

See: Description

Package org.rigwit.forth Description

Forth Virtual Machine

This package represents the Kernel of the JavaForth system. It is not intended for public use. However, if you wish to extend the system by providing CODE words to allow the Forth system to interact with the Java Class library you will need to understand the virtual machine. In particular the VM class.


All I/O is managed as a character stream via the ForthWriter and ForthReader classes.


The ForthLoader should be used to read and interpret Forth source files into the system.


Extending the VM is achieved via additional word sets. A word set is loaded into a word list via the WordList.loadJava() method. This will load a Java primitive class according to the rules given in the WordSet class.