args are now stored with their symbols instead of ther string identifiers

This commit is contained in:
FelixBrendel
2019-08-01 19:48:09 +02:00
parent 7cebcd1823
commit 241ac60ced
11 changed files with 141 additions and 15 deletions
+3 -3
View File
@@ -98,7 +98,7 @@ condition is false."
(construct-list
i <- '(1 2 3 4 5 6 7 8)
when (evenp i)
if (= 0 (% i 2))
yield i)
"
(define (append-map f ll)
@@ -116,8 +116,8 @@ condition is false."
((= () (rest body)) (first body))
((= (first (rest body)) '<-)
`(,append-map (lambda (,(first body)) (list ,(rec (rest (rest (rest body)))))) ,(first (rest (rest body)))))
((= (first body) 'when)
`(if ,(first (rest body)) ,(rec (rest (rest body)))))
((= (first body) 'if)
`(when ,(first (rest body)) ,(rec (rest (rest body)))))
((= (first body) 'yield)
(first (rest body)))
(else (error "Not a do-able expression"))))