On Mar 24, 5:40 pm, Bernd Paysan <bernd.pay...@[EMAIL PROTECTED]
> wrote:
> You mix up class and instance.
Precisely. It was more than a year since I used it, and I did not sit
down and read the moof-exm.fs file with the same focus that I did when
I first used it.
It does work nicely to have all the methods in the class and
everything for individual instances in variables. For example, in the
scripts family, the instance variables hold the wordlist-id for the
special words and the char-address and length of the terminator
string, and the specific class is defined by:
* the normal action for tokens that are neither special word nor
terminator
* the test used to match to the terminator
* and the commence and conclude actions before and after the main
script loop.
So a block comment word might have itself in a specials wordlist, to
support nesting, or null-wordlist, to be non-nested, have an exact
match with the terminator, and no-ops for commence and include. The
Nicl ``[]'' classes will have a more involved normal action on a
token, in commence check that the foundation Nicl search order is at
the base of the search-order, match the ``[]'' to the head of the
terminator, and set the final return value and execute the concluding
``[]'' word in the conclude method.


|