[Inquiry] Re: Theme One Program -- Commentary -- Grasp
Jon Awbrey
jawbrey at att.net
Thu Feb 3 08:54:05 CST 2005
o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o
TOP. Commentary Note 53
o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o
Grasp.
Grasp is a transformation of ideas that acts as a predicate recognizer,
in effect, computing the logical disjunction of the Grain test and the
Suspect test, with the non-nil cases as shown in the following figures:
Case 1. grain (this) =/= nil.
o---o
| x | arch (this) not in {comma, left parenthesis}
o---o
^
this |
@
Case 2. suspect (this) =/= nil.
^ o-------o
o--\------------|---o |
| o---o o---o | |
o-->| |-->| ) |---o |
o---o o---o |
^ |
| o-------------o
| /
| /
| /
o-------|-/-------o
| o---o< |
o-->| ( |-->...---o
o---o
^
this |
@
function grasp (this: idea): idea;
var here: idea;
begin
here := nil;
if this <> nil then
if grain (this) <> nil then here := this
else if suspect (this) <> nil then here := this;
grasp := here
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