mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
Tweaked syntax
This commit is contained in:
parent
7e2a9f46c2
commit
04b32d6a5e
1 changed files with 6 additions and 3 deletions
|
@ -1,13 +1,16 @@
|
|||
(import (scheme base) (scheme write) (scheme cyclone pretty-print))
|
||||
|
||||
#;(letrec-syntax
|
||||
((my-or (syntax-rules
|
||||
()
|
||||
((my-or (syntax-rules ()
|
||||
((my-or) #f)
|
||||
((my-or e) e)
|
||||
((my-or e1 e2 ...)
|
||||
(let ((temp e1)) (if temp temp (my-or e2 ...)))))))
|
||||
(let ((x #f) (y 7) (temp 8) (let odd?) (if even?))
|
||||
(let ((x #f)
|
||||
(y 7)
|
||||
(temp 8)
|
||||
(let odd?)
|
||||
(if even?))
|
||||
(my-or x (let temp) (if y) y))) ;; ==> 7
|
||||
|
||||
(define-syntax my-let
|
||||
|
|
Loading…
Add table
Reference in a new issue