All ready to implement property lists, not yet done.

This commit is contained in:
Simon Brooke 2023-04-02 03:45:40 +01:00
parent 5ee9531e6b
commit b61e7c3e8c
16 changed files with 225 additions and 125 deletions

View file

@ -0,0 +1,10 @@
;; There are two different statements of SUBLIS and SUB2 in the manual, on
;; pages 12 and 61 respectively, although they are said to be semantically
;; equivalent; this is the version from page 12.
sub2[a; z] = [null[a] -> z;
eq[caar[a]; z] -> cdar[a];
T -> sub2[cdar[a]; z]]
sublis[a; y] = [atom[y] -> sub2[a; y];
T -> cons[]]