A collection of recognizers
- raw README.md
- raw Recognizer.4th
- raw Stack.4th
- raw literacy.4th
- raw package.4th
- raw rec-double-paren.4th
- raw rec-find.4th
- raw rec-name.4th
- raw rec-notfound.4th
- raw rec-num.4th
- raw rec-string.4th
- raw rec-time.4th
- raw tester.fs
Matthias Trute <firstname.lastname@example.org> Version 1.1.0 - 2016-09-18
This package is a collection of recognizer examples. To play with them, simple implementations for (old) gforth and VFX are included. These words are not (yet) able to compile code or are otherwise integrated into the underlying system.
These files in combination with
Stack.4th give a
playground for making experiments with recognizers. They
have been tested with gforth versions that usually
come with the linux distributions and MPE's vfxlin (a
random older version from 2014).
differ in two aspects only. First is the tester framework.
Gforth supplies the
}T words while vfx has the
} pair (and a slightly different filename
to be used). Second is the implementation of
the number recognizers which use existing words that
Forth 2012 defined the 'c' syntax for single characters.
That means that
char c or
[char] c can be replaced
Just load the file and put the
rec:char at the right
place into the recognizer stack. Your system shall have
a better one, this one is more educational.
A recognizer for double numbers only. It strictly follows the Forth 2012 spec and allows trailing dots only.
It is based on
>NUMBER for the actual number conversion,
some features such as signs and number prefixes are mising.
Your system shall have a better one, this one is more
Simple formatting of source code in the spirit von Don Knuth literate programming. You can combine the real source code and its documentation in one document that the standard forth interpreter can handle directly.
Author: Julian Fondren, 2014 License: probably public domain.
check and convert for the hh:mm:ss notation returning a double cell number for the number of seconds it represents.
Author: Matthias Trute, 2013 License: public domain