<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa --> <!--X-From-R13: Quevf Uenl <ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO> --> <!--X-Date: Sat, 11 Jul 1998 15:35:51 -0700 --> <!--X-Message-Id: 199807112232.QAA00534@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA"> </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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00173.html">Previous</a> | <a href="msg00175.html">Next</a> ] Thread: [ <a href="msg00146.html">Previous</a> | <a href="msg00080.html">Next</a> ] Index: [ <A HREF="author.html#00174">Author</A> | <A HREF="#00174">Date</A> | <A HREF="thread.html#00174">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</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: (fwd) Re: command parsers: a modest proposa</LI> <LI><em>From</em>: Chris Gray <<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>></LI> <LI><em>Date</em>: Sat, 11 Jul 1998 16:32:05 -0600</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> [Richard Bartle:] > >for me, the concept of "part of speech" isn't really part > >of the server. So, my "tables" are just mappings of strings to > >database items, which includes objects, rooms, code, arrays, etc. > I find parts of speech useful because they allow single words to >have different meanings depending on where they are used. > WIND CLOCK verb > GET WIND CHIME adjective > SUMMON WIND noun > > It's especially helpful with abbreviations: > G K get key > K G kill goblin > G K F G get key from goblin > F flee > > Using parts of speech, you can point to entirely different objects >from vocabulary entries by context. Ah, but you can fake out that sort of thing with proper faking out of part of speech. I assume that the first word in a command is a 'verb', and so look it up in the grammar as such. A given word can be in a grammar as either a verb, in one or more forms, or as a non-verb, which has no additional information. For verbs like 'get X from Y', I would store the word 'from' as one of these "non-verbs", and the description of the 'get from' verb would reference it as its "separator word". That's likely not a clear description. Here's a short, made-up example: Verb0(G, "down", function_for_down); Verb0(G, "in", function_for_in); Synonym(G, "down", "d"); Synonym(G, "in", "i"); Verb1(G, "put", FindWord(G, "down"), function_for_put_down); Verb2(G, "put", FindWord(G, "in"), function_for_put_in); Synonym(G, "put", "p"); With that framework, the following user commands would work: in; i down; d put <noun phrase>, <noun phrase> in <noun phrase> put <noun phrase> down p d <noun phrase> It's all faked out, but works not bad. The first abbreviation conflict shows up here, however - I use 'i' as an abbreviation for 'inventory', instead of for 'in'. :-) -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00173.html">[MUD-Dev] Re: World Creation Notes, version 061098</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00175.html">[MUD-Dev] Re: Physics Lesson</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00146.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00080.html">[MUD-Dev] Re: An Introduction</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00174"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00174"><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: (fwd) Re: command parsers: a modest proposa</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00111" HREF="msg00111.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, Richard Bartle <a href="mailto:76703.3042#compuserve,com">76703.3042#compuserve,com</a>, Thu 09 Jul 1998, 16:22 GMT <UL> <LI><strong><A NAME="00127" HREF="msg00127.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Thu 09 Jul 1998, 20:38 GMT </LI> </UL> </LI> <LI><strong><A NAME="00135" HREF="msg00135.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 10 Jul 1998, 01:58 GMT </LI> <LI><strong><A NAME="00146" HREF="msg00146.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, Richard Bartle <a href="mailto:76703.3042#compuserve,com">76703.3042#compuserve,com</a>, Fri 10 Jul 1998, 11:12 GMT </LI> <LI><strong><A NAME="00174" HREF="msg00174.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 11 Jul 1998, 22:35 GMT </LI> </ul> </LI> <LI><strong><A NAME="00080" HREF="msg00080.html">[MUD-Dev] Re: An Introduction</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 08 Jul 1998, 14:16 GMT <UL> <LI><strong><A NAME="00083" HREF="msg00083.html">[MUD-Dev] Re: An Introduction</A></strong>, Jeroen Ruigrok/Asmodai <a href="mailto:asmodai#wxs,nl">asmodai#wxs,nl</a>, Wed 08 Jul 1998, 17:20 GMT <UL> <LI><strong><A NAME="00336" HREF="msg00336.html">[MUD-Dev] Re: An Introduction</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 24 Jul 1998, 21:42 GMT <UL> <LI><strong><A NAME="00337" HREF="msg00337.html">[MUD-Dev] Re: An Introduction</A></strong>, Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Fri 24 Jul 1998, 21:50 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>