1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: MUD verb handling (Was: DevMUD &#45; thoughts.1) -->
<!--X-From-R13: Fur Oeebj <neebjNgeryyrobet.znvy.gryvn.pbz> -->
<!--X-Date: Sun, 25 Oct 1998 03:57:22 &#45;0800 -->
<!--X-Message-Id: Pine.LNX.3.96.981025123253.3986C&#45;100000@localhost -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810250458.WAA02465@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:arrow#trelleborg,mail.telia.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00481.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00483.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00481.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00487.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00482">Author</A>
&nbsp;|&nbsp;<A HREF="#00482">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00482">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</LI>
<LI><em>From</em>: The Arrow &lt;<A HREF="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</A>&gt;</LI>
<LI><em>Date</em>: Sun, 25 Oct 1998 12:54:34 +0100 (CET)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Sat, 24 Oct 1998, Chris Gray wrote:

&gt; Parsing
&gt; 
&gt; This is a tricky issue. There is a whole range of ways that parsing can
&gt; be done. For example, in LPC, a lot of parsing is done by the individual
&gt; objects in the world. How does that fit into the module scheme? I'll
&gt; let others suggest how other schemes might fit in - I don't know enough
&gt; about them to say anything reasonable.
&gt; 
&gt; I *do* know what my system is, however, so I can talk about how it would
&gt; fit into this scheme. In my scheme, there are things call "grammars"
&gt; that describe how to handle text input. (Is a parser required for
&gt; non-text input?) Each grammar contains a table of words and their
&gt; synonyms. Words which are verbs describe what the structure of a
&gt; command starting with that word looks like (so, this doesn't extend
&gt; to other languages than English very well). This description is just
&gt; a selection of one of:
&gt; 
&gt;     - no other words in the command
&gt;     - a possible extra specific word, then a noun phrase
&gt;     - a noun phrase, a specific word, a second noun phrase
&gt;     - uninterpreted - pass the word list on
&gt; 
&gt; It's a bit more complicated than that, but I hope you get the idea. A
&gt; very simple structure, but it handles most input reasonably well. The
&gt; key is, that associated with each verb word is a reference to a
&gt; MUD-language function to call to process the commands that match that
&gt; verb specification. (The same word can be the verb word for more than
&gt; one specification - the specific extra words are used to choose among
&gt; them.)

Hmm, reminds me of the system I have thought of for my mud.  However, I
haven't got anything else than some random thoughts and a yacc grammar for
my mud-language (based on a mix of C and the IF languages Hugo and Inform)
for the definition of the verbs.  Verb handlers exists either as functions
in the mud language, or not at all (a "Huh?!?" type message gets written),
and all mud-objects may have one or more (or none) after and before handlers
wich gets called after and before the verb default function.  The after and
before handlers can return false to stop the verb parser from searching for
more handlers and not execute the default verb function.
For example, assume Bubba the human tries to pick up a rock, the rock object
have a a before handler for the OnGet verb that checks the strength of the
actor and prints "The rock is to heavy for you." message and returns false
if the actors strength is to small, making the rock ungetable for Bubba.

/ Joachim
======================================================================
The Arrow                   Email: arrow#trelleborg,mail.telia.com
Joachim Pileborg              WWW: <A  HREF="http://w1.410.telia.com/~u41003102/">http://w1.410.telia.com/~u41003102/</A>
======================================================================
"They say I don't give a shit about anything," -- Magnus Uggla
"but I don't give a shit about that."        (translated from swedish)




</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00543" HREF="msg00543.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>
<ul compact><li><em>From:</em> Jon Leonard &lt;jleonard#divcom,slimy.com&gt;</li></ul>
<li><strong><A NAME="00487" HREF="msg00487.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>
<ul compact><li><em>From:</em> "Adam J. Thornton" &lt;adam#phoenix,Princeton.EDU&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00477" HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00481.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00483.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00481.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00487.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00482"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00482"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: openmud or pdmud or devmud</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00525" HREF="msg00525.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 00:25 GMT
<UL>
<LI><strong><A NAME="00526" HREF="msg00526.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Tue 27 Oct 1998, 00:54 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00477" HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 05:04 GMT
<UL>
<LI><strong><A NAME="00481" HREF="msg00481.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 25 Oct 1998, 09:39 GMT
</LI>
<LI><strong><A NAME="00482" HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sun 25 Oct 1998, 11:57 GMT
<UL>
<LI><strong><A NAME="00487" HREF="msg00487.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Sun 25 Oct 1998, 15:11 GMT
</LI>
<LI><strong><A NAME="00543" HREF="msg00543.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 06:57 GMT
<UL>
<LI><strong><A NAME="00549" HREF="msg00549.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Tue 27 Oct 1998, 16:32 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00483" HREF="msg00483.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 13:47 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>