Subject: parsing option prep in dobjstr

From: [email-masked]
Date: Thu, 7 Oct 1993 15:56:18 -0700

Newbie question #147:

How does one handle a situation where the preferred English syntax is:

verb object1 [WITH features] ON THIS

The optional prepositional phrase describing object1 is really messing me
up.
-- 
--
-- "TANSTAAFL" Rich [email-masked]

---

From: Pavel Curtis <[email-masked]>
Date: Thu, 7 Oct 1993 16:45:32 -0700

> Date:	Thu, 7 Oct 1993 15:56:18 -0700
> From:	[email-masked]
> 

My approach would be to give the verb args as

		any on this

and then do extra parsing of the `dobjstr' to find the `with' if any, etc.

	Pavel

---

From: Pavel Curtis <[email-masked]>
Date: Thu, 7 Oct 1993 17:55:24 -0700

> Date:	Thu, 7 Oct 1993 16:45:32 -0700
> From:	Pavel Curtis <[email-masked]>
>

This is, of course, complete garbage, because when the WITH part is given, the
server will decide that WITH is the main preposition and fail to find my `any
on this' verb.  You either have to have the verb be on `object1' twice (once
with `with' as the prep and once with `ON', both presumably calling into a
third verb which does the actual work) or else put the verb either on the
player or the room, either using the same double-definition idea or simply
using `any any any' and doing the parsing manually.

Nobody ever said that the MOO parser was a good thing.

	Pavel