# Parser Problem

Coolin MacKaarmick (colin@tripod.tripod.com)
Wed, 30 Aug 1995 09:58:37 PDT

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

    I'm getting a strange parser error, and I'd love it if someone could
    explain it/help me work around it.

    ------------------------------
    @verb me:@junk this none any
    @program me:@junk
    player:tell("Hello, world.");
    .

    @junk me
    Hello, world.

    @junk me nothing
    I don't understand that.
    ------------------------------

    For some reason it's not finding the verb once I throw in an iobjstr.
    This is very strange.  The only thing I can think of is that because the
    parser looks first for the prepstr and divides the remaining arguments
    into dobjstr and iobjstr on the basis of the position of the prepstr, the
    parser considers "me nothing" to be the dobjstr, "" to be the iobjstr,
    and thus can't match an object on either of those.

    If this is right, has anyone found a workaround?  I'd like to do
    something like:

    @tip waiter $1

    rather than

    @tip $1 to waiter

    (even though in this particular example there's not much difference.)

    ... and if it's wrong, what's the answer?  :)

    Thanks,
    Colin

    ############################################################################
    #Colin F. McCormick	      Freelance Programmer -- MOO & Unix specialist#
    #colin@tripod.tripod.com	http://student_97ffa.williams.edu/~cmccormi#
    # GS/Lit/M d? p- c++(---) l+(++) u++ e++ m++(-) s+/ n+ h* f* !g @w++ t+ y? #
    ############################################################################