Working with Forth
What is the PF console ?
The PF console is a simple programming environment in which the user can enter commands. When you start PF from a terminal you immediately end up in the interactive PF console where you can start typing some Forth. When you press enter, these commands are read and interpreted: for each symbol the associated code is executed, and other values are loaded on the data stack.
During the Introduction to Forth you have already played a bit with the console. The PF console provides a few useful features:
- History: What you have typed can be accessed back using the up arrows
- Word Completion: When you start writing a word, hitting "TAB" will propose you a selection of matches found in the PF dictionary
- Help: If you type "help" you will be guided through the integrated reference system.
- Dictionnary list: all the available commands can be listed if you type ".words" or "TAB TAB"
Attachments
- console.png (1.6 kB) - added by marloes 4 years ago.
