Message-ID: <3D3F4A6C.4050103@csi.com>
Date: Wed, 24 Jul 2002 20:46:36 -0400
From: John Colagioia <JColagioia@csi.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: Can't examine the pool of water (inform problem)
References: <ahj54c$tir1m$1@ID-62041.news.dfncis.de> <20020723222012.25612.00000623@mb-cd.aol.com> <ahl5bu$5so$1@reader3.panix.com> <ahmgmk$tpt06$1@ID-60390.news.dfncis.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Original-NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Trace: excalibur.gbmtech.net 1027557559 ool-182f30fa.dyn.optonline.net (24 Jul 2002 20:39:19 -0400)
Organization: ProNet USA Inc.
Lines: 29
X-Authenticated-User: jnc
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.abs.net!uunet!dca.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:106586

Neil Cerutti wrote:
[...]
> Personally, I would use a variation of Zarf's parse_name
> template, and just refuse to match 'of' if it's the last word
> discovered.

I'd be more comfortable if it allowed itself all alone, so that the
savvy player can refer to "the unbelievable thigamabob of
transgalactic squirrelhood" can type >TAKE OF and not have the parser
put up a fight.

> [ ParseNameOf wd prev num;
>   wd = NextWord();
>   while (WordInProperty(wd, self, name)) {
>     --num;
>     prev = wd;
>     wd = NextWord();
>   }
>   if (prev == 'of') {

! The above suggestion would require adding "&& num > 1" to
! the condition.

>     --num;
>   }
>   return num;
> ];
[...]

