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.
- compgroups.net/comp.lang.forth/additional-recognizers/734676 in 2003.
- Number Parsing Hooks in 2007.
- Recent developments were presented at the Euroforth conference 2012
The 1st formal RFD (txt) (3.10.2014) has beed discussed. A Draft of Version 2 (txt) (22.6.2015) is currently beeing worked on. It incorporates the results of the discussions and some more ideas.
The papers linked below give some background information and describe the concept. Examples can be found in the code base.
- First Generation is an all in one implementation.
- Second Generation describes the factored component approach.