faking multislots with lists
[email protected] (Pedro Kröger) Fri, 24 Oct 2008 16:56:08 -0300
| Newsgroups | gmane.lisp.lisa.general |
|---|---|
| Message-ID | <[email protected]> |
hi,
I'm working my way thought Giarratano and Riley's "Expert Systems
Principles and Practice" and converting the clips examples to lisa.
there is an example that uses multislots to match the names of people.
the pattern in the rule is:
(person (name ?name)
(children $?before ?child $?after))
I tried something like the following but it does not work (there is no
match):
(person (name ?name)
(children ?children (member ?child ?children)))
my attempt to translate it to lisa is here:
http://paste.lisp.org/display/69135
and the original clisp in here:
http://paste.lisp.org/display/69135#1
what am I doing wrong?
Pedro
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/