Two very quick fixes for failing tests

This commit is contained in:
Simon Brooke 2023-04-09 20:59:02 +01:00
parent cde3d79ff3
commit e5677a8300
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@
EXPR
(LAMBDA
(L)
(COND ((EQ NIL L) 0) ((CONSP (CDR L)) (ADD1 (LENGTH (CDR L)))) (T 0))))
(COND ((EQ NIL L) 0) ((CONSP (CDR L)) (ADD1 (LENGTH (CDR L)))) (T 1))))
(LESSP 32767 SUBR (BEOWULF HOST LESSP))
(MAPLIST
32767

View file

@ -94,7 +94,7 @@
(list (if (= (nth p 1) [:quoted-expr [:atom "T"]])
'T
(generate (nth p 1) context))
(generate (nth p 2)) context))))
(generate (nth p 2) context)))))
(defn gen-cond
"Generate a cond statement from this simplified parse tree fragment `p`;