a What to do when a rule matches. Once we have determined which rule to use, we
Question:
a What to do when a rule matches. Once we have determined which rule to use, we have to determine what it means to use it. The default is just to substitute the bindings of the match into the then-part of the rule.
The rule-based translator tool now looks like this:
(defun rule- based-trans1 ator
(input rules &key (matcher #'pat-match)
(rule-if #'first) (rule-then #'rest) (action #'sub1 is)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Paradigms Of Artificial Intelligence Programming Case Studies In Common Lisp
ISBN: 9781558601918
1st Edition
Authors: Peter Norvig
Question Posted: