Expand the logic programming interpreter to include LISP write statements. This will allow rules to print messages

Question:

Expand the logic programming interpreter to include LISP write statements. This will allow rules to print messages directly to the user. Hint: modify solve first to examine if a goal is a write statement. If it is, evaluate the write and return a stream containing the initial substitution set.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: