6.17.5 Recognizers

The recognizer concepts factor the central part of the text interpreter: The processing of one word after its name has been parsed.

Unfortunately, there is no consensus on the exact words used for dealing with recognizers yet, so the words and descriptions in this section just reflect what is currently implemented in Gforth. They can and most likely will change in the future. Therefore, the documentation has also received less love than anything expected to be of permanent use.

Most programs just use the text interpreter as-is, and you can skip this chapter completely in this case, but if you are curious, see Default Recognizers. The next level of recognizer usage is to change which of the existing recognizers are used and in what order (see Recognizer order). You may also want to define a new recognizer using an existing translator (see Define recognizers with existing translators). If no existing translator fits, you can define a new translator (see Defining translators). Finally, you may want to process a word using a recognizer (sequence) and the resulting translator (see Performing translator actions).