[DGD] Re: Verb Parsing Ideas
Jason Cone
jcone at cs.tamu.edu
Tue May 12 01:30:02 CEST 1998
-----Original Message-----
From: Jason Cone <jcone at cs.tamu.edu>
To: dgd at list.imaginary.com <dgd at list.imaginary.com>
Date: Monday, May 11, 1998 5:30 PM
Subject: [DGD] Re: Verb Parsing Ideas
I made a rather blatant (and confusing) mistake in my original post. The
following shows how to use rules in triggers. If you change "can_test_obja"
to "do_test_obja", it is right. It will still work, but the design is not
sound (not that the example is useful for actual use :)
>void init()
>{
> add_trigger("test", ({ "OBJA" }));
>}
>
>int can_test_obja(mixed *mpObjPacket)
>{
> write("Number of adjectives for Ambiguous Object: " +
> sizeof(mpObjPacket[0]) + "\n");
> write("Name of Ambiguous Object: " + mpObjPacket[1] + "\n");
> write("Which Ambiguous Object: " + mpObjPacket[2] + "\n");
>
> return 1;
>}
--
Jason H. Cone
Dept. Computer Science
Texas A&M University
jcone at cs.tamu.edu
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list