Message-ID: <3B192FB1.6CD8@attglobal.net>
Date: Sat, 02 Jun 2001 11:25:53 -0700
From: "J. Fatula" <fatula3@attglobal.net>
Reply-To: fatula3@attglobal.net
Organization: Dis- or sometimes Un-
X-Mailer: Mozilla 3.01C-PBWG  (Win95; U)
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: [Inform] Delayed use of Parser
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: slip-12-64-48-16.mis.prserv.net
X-Trace: 2 Jun 2001 06:44:24 GMT, slip-12-64-48-16.mis.prserv.net
Lines: 28
X-Complaints-To: abuse@prserv.net
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!feeder.qis.net!washdc3-snh1.gtei.net!news.gtei.net!newsfeed.us.prserv.net!prserv.net!news1.prserv.net!slip-12-64-48-16.mis.prserv.net
Xref: news.duke.edu rec.arts.int-fiction:87910

Hello everyone,

I've got a bit of a problem again. (no surprise)
I would like the player to be able to type in something like the
following:

   >TELL JOHN "THROW THE BALL AT THE MONKEY"

Using the example from the DM, I have an array called "ordertogive", and
I can read out the contents of that array using code such as:

   for (k=1:k<=ordertogive->0:k++)
    {f=ordertogive->k;
     if (f~=0) print (char) f;
    }

Here's the hard part.  How do I feed this into the parser (perhaps at a
later point), yielding such useful pieces as:

   actor = John
   verb = ThrowAt
   noun = ball
   second = monkey

Any thoughts?

Joe Fatula

