Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: How does th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 12 Topic 3967 of 4053
Post > Topic >>

Re: How does this Mini-OOF thing work, again?

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 25, 2008 at 11:05 AM

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.




 12 Posts in Topic:
How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-24 13:20:36 
Re: How does this Mini-OOF thing work, again?
anton@[EMAIL PROTECTED]   2008-03-24 21:00:03 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-24 14:16:09 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-24 14:17:07 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-24 14:23:58 
Re: How does this Mini-OOF thing work, again?
Bernd Paysan <bernd.pa  2008-03-24 22:40:16 
Re: How does this Mini-OOF thing work, again?
Gerry <gerry@[EMAIL PR  2008-03-24 14:39:35 
Re: How does this Mini-OOF thing work, again?
jacko <jackokring@[EMA  2008-03-24 15:16:15 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-24 15:17:13 
Re: How does this Mini-OOF thing work, again?
Gerry <gerry@[EMAIL PR  2008-03-25 02:36:34 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-25 09:33:52 
Re: How does this Mini-OOF thing work, again?
Bruce McFarling <agila  2008-03-25 11:05:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 10:42:17 CDT 2008.