Newsgroups: rec.arts.int-fiction
Subject: Re: Custom parsing, or what? [Inform]
References: <3d193204$0$79555$3c090ad1@news.plethora.net>
X-Newsreader: NN version 6.5.6 (NOV)
From: kaf03@uow.edu.au (Kenneth Alexander Finlayson)
NNTP-Posting-Host: nepthys.cs.uow.edu.au
Message-ID: <3d19428a$1@news.uow.edu.au>
Date: 26 Jun 2002 14:26:50 +1000
X-Trace: news.uow.edu.au 1025065610 nepthys.cs.uow.edu.au (26 Jun 2002 14:26:50 +1000)
Organization: University of Wollongong
Lines: 22
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.usyd.edu.au!news.newcastle.edu.au!news.uow.edu.au!kaf03
Xref: news.duke.edu rec.arts.int-fiction:105472

seebs@plethora.net (Peter Seebach) writes:

>Okay, it turns out I have a more basic problem:  I want to be able to refer
>to words such as "July" or "August".  What mechanism, if any, do I have for
>extracting them?

(snip)

>I
>can't add my own parsing routine, so far as I can tell, because any parsing
>routine I wish to add has to return some object's number, if it is to succeed
>at all... but there's no corresponding objects.

parse_name is your friend. It must return the number of words successfully
matched, not the number of the object. Some generous soul may post a
working example, but for the time, I shall direct you to the DM, since
my Inform is rusty.

Ken
--
If ever there was a show made for women, this is it.
                              -- Paul Zalunardo, writing about "Friends"
