![]() |
You. Forth. Simplicity. |
reload node | edit | recent changes | front page
You will likely have times that you will want to hide words, but access them later on. In the Rx Core, a limited form of vocabularies allows this to be accomplished. Two words are provided to create and work with named vocabularies. A simple example of a vocabulary in use is shown below.
voc: foo
foo
10 constant a
20 constant b
^
: bar foo a b ^ * . cr ;
You can open a vocabulary by calling its name. Vocabularies may be opened at any time, however only one can be open at a time. Use ^ to close the open vocabulary at any time.