mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
More tests
This commit is contained in:
parent
9ebd079c8b
commit
19ee3de542
1 changed files with 21 additions and 0 deletions
|
@ -26,6 +26,27 @@
|
|||
(if even?))
|
||||
(my-or x (let temp) (if y) y))) ;; ==> 7
|
||||
|
||||
|
||||
;; From Chibi
|
||||
#;(let ()
|
||||
(letrec-syntax ()
|
||||
(define internal-def 'ok))
|
||||
internal-def)
|
||||
|
||||
|
||||
#;(let ((a 1))
|
||||
(let-syntax
|
||||
;;(letrec-syntax
|
||||
((foo (syntax-rules ()
|
||||
((_ b)
|
||||
(bar a b))))
|
||||
(bar (syntax-rules () ((_ c d)
|
||||
(cons c (let ((c 3))
|
||||
(list d c 'c)))))))
|
||||
(let ((a 2))
|
||||
(foo a))))
|
||||
|
||||
|
||||
(define-syntax my-let
|
||||
(syntax-rules
|
||||
()
|
||||
|
|
Loading…
Add table
Reference in a new issue