Newsgroups: rec.arts.int-fiction
Path: gmd.de!xlink.net!news.belwue.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!sunic!liuida!thoni
From: thoni@ida.liu.se (Thomas Nilsson)
Subject: Re: Recommended Game Driver?
Message-ID: <1994Mar14.093652.28117@ida.liu.se>
Sender: news@ida.liu.se
Organization: CIS Dept, Univ of Linkoping, Sweden
References: <jdf-080394142200@jdf.dialup.access.net> <2lil8n$pm2@news.tamu.edu> <DJOHNSON.94Mar9210207@seuss.ucsd.edu>) <2lsu6bINNmcm@life.ai.mit.edu>
Date: Mon, 14 Mar 1994 09:36:52 GMT
Lines: 35

dmb@min.ai.mit.edu (David Baggett) writes:

>But your point is well taken -- I've always thought the best
>parser-language interface would be one where you could specify your own
>patterns, like

>	<verb> <object>:
>		if (<object>.verDo<verb>(actor))
>			<object>.do<verb>(actor);

>	<verb> <object> <prep> <object>:
>		...

That is way Alan does it that way. Except that you don't explicitly
have to check for the possibility to execute the command either:

	SYNTAX
		listen = 'listen'.
		listen_to = 'listen' 'to' (s).

Then you simply implement the verbs listen and listen_to where they
are relevant. The connection between syntax and the implementations is
automatic.

/Thomas

--
Little languages go a long way...
(ThoNi of ThoNi&GorFo Adventure Factories in 1985)
----------------------------------------------------------------------
Thomas Nilsson				Phone Int.: (+46) 13 12 11 67
Stenbrotsgatan 57			Phone Nat.: 013 - 12 11 67
S-582 47  LINKOPING			Email:	thoni@softlab.se
SWEDEN
----------------------------------------------------------------------
