# Parser Problem

Thomas Wouters (zonny@alibaba.dds.nl)
Thu, 31 Aug 1995 08:12:56 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    On Wed, 30 Aug 1995, Coolin MacKaarmick wrote:

    > On Wed, 30 Aug 1995, Tom Ritchford wrote:
    [snip]
    > > Once you've set the preposition to be none, there can be no
    > > iobjstr and iobj.  So @junk is really @junk this none none.
    > > In the second example, it tries to match the string "me nothing" against an
    > > object and fails.  Thus, the dobj is $nothing... but the dobj has to be
    > > "this" in order for the verb to match.  So no match and the error above.
    > As I suspected.  The crux of my question is whether there is a workaround
    > or if there is an inherent proscription on constructs such as "@pay bob
    > $10."  I doubt it (a workaround), but maybe someone's been very, very
    > clever.

    Make it 'this any any' and check in argstr ,or use args[2], or use
    $string_utils:explode(argstr," "). This last thingy also very handy to
    make MUSH like command parsing (just explode(argstr,"=").

    Greets,
    __     __
    \ \   / /
     \ \_/ / __  _ __   ___ ____
      \   / '_ \| '_ \ / _ \_  /
       | || | | | | | | (_) / /
       |_||_| |_|_| |_|\___/___|