Recognizers

The goal of a recognizer is to dynamically extent the Forth command interpreter and make it understand and handle new data formats as well as new synatax’s. The present, 2nd generation recognizers achieve this by generalizing the classic interpreter with an API to factor the components. Recognizers are portable across different forth’s.

Recognizers are not a new concept for forth. They have been discussed earlier.

More recognizer examples are available at The Forth Net.

Version 4

The Euroforth 2017 suggested some small wording changes and initiated a spin off stack RFD resulting in a much smaller recognizer RFD.

Version 4 (pdf), (txt) All discussions and remarks went into a new document (html), (pdf) (text)

Forth source code and test code require Stack.frt and tester.fs.

Outdated

The 1st formal RFD (pdf), (txt) was published at october, 3 2014. Version 2 (pdf), (txt) has been published on september, 20 2015. It improves the proposed standard section and adds a long chapter discussing the recognizer design based on feedback from version 1. The 3rd version has been started immediately after v2 due to a suggestion changing the POSTPONE action. Version 3 (pdf), (txt).

The Sourcecode requires Stack.frt. In the Recognizer-Test are many tests and example implementation for gforth, MPE’s vfxlin and Swift-Forth from Forth Inc.

The papers linked below give some historical background information.

Namespace RFD

An inofficial Namespace RFD.