|
|
|
|
|
by masswerk
1316 days ago
|
|
So have (USAGE: PALIN A B B A ...)
START
at the beginning and a MEMORY rule (must have exactly 4 entries) at the end: (MEMORY XYZZY
(0 = A)
(0 = B)
(0 = A A)
(0 = B B)
)
:-)PS: I'm not sure, if the initial welcome message is actually mandatory, but the MEMORY rule definitely is. |
|
And the MEMORY keyword "must be an ordinary keyword as well." So you'd need a (XYZZY ...) rule.
Also, the START symbol appears in the DOCTOR script, but is never mentioned in the body of the paper.
Another thing Weizenbaum doesn't mention in his description is the final empty list in the DOCTOR script. This does seem to be expected by the code.