Much progress, but bad regression in parsing M-Expressions.
This commit is contained in:
parent
1dbc57efff
commit
cde3d79ff3
44 changed files with 451 additions and 347 deletions
|
|
@ -2816,13 +2816,14 @@ Note that the following M-expression is different from that given in Section I,
|
|||
the result is the same.
|
||||
|
||||
```
|
||||
sublis[x;y] [null[x] -- y;
|
||||
null[y] -- y;
|
||||
T -. search[x;
|
||||
k[[j]; equal[y;caar[j]]];
|
||||
k[[j]; cdar[j]];
|
||||
k[[j];[atom[y] - y;
|
||||
T -c cons [sublis [x;car [y]];sublis [x;cdr [y]]]]]]]
|
||||
sublis[x;y] = [null[x] -> y;
|
||||
null[y] -> y;
|
||||
T -> search[x;
|
||||
lambda[[j]; equal[y;caar[j]]];
|
||||
lambda[[j]; cdar[j]];
|
||||
lambda[[j]; [atom[y] -> y;
|
||||
T -> cons[sublis[x; car[y]];
|
||||
sublis[x; cdr[y]]]]]]]
|
||||
```
|
||||
|
||||
### List Handling Functions
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
# The properties of the system, and their values: here be dragons
|
||||
# The properties of the system, and their values
|
||||
|
||||
## here be dragons
|
||||
|
||||
Lisp is the list processing language; that is what its name means. It processes data structures built of lists - which may be lists of lists, or lists of numbers, or lists of any other sort of data item provided for by the designers of the system.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue