[Inquiry] Re: Theme One Program -- Commentary -- Gage

Jon Awbrey jawbrey at att.net
Mon Jan 24 11:20:06 CST 2005


o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

TOP.  Commentary Note 33

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

Gage.

Gage is a transformation of ideas that is composed of
the recognizer Gram followed by the constructor Gist.
Gram acts as the identity on any argument idea whose
form contains a 'sign' that is something other than
a comma, a left parenthesis, or a right parenthesis,
returning nil on anything else.  Gist constructs a
cog-type structure with the same 'sign' and 'alias'
as any significant idea-form that it gets as input.

Step 1.
            ^ this^.as
             \
              o-----o
              | a   |
              o-----o
              ^
         this |
              @

Step 2.  For "a" not equal to comma, left parens, right parens:

            ^ this^.as        ^ this^.as
             \              o--\----------o
              o-----o       |   o-----o   |
              | a   |       o-->| a 0 |---o
              o-----o           o-----o
              ^                 ^
         this |            gage |
              @                 @

function gage (this: idea): idea;
begin
 gage := gist (gram (this))
end;

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o
inquiry e-lab: http://stderr.org/pipermail/inquiry/
o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o



More information about the Inquiry mailing list