mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
WIP
This commit is contained in:
parent
8750696e17
commit
24fc89f320
1 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
(import (scheme base))
|
||||
(import (scheme base) (scheme write))
|
||||
|
||||
;; (let-syntax ((given-that (syntax-rules ()
|
||||
;; ((given-that test stmt1 stmt2 ...)
|
||||
|
@ -9,7 +9,17 @@
|
|||
;; (given-that if (set! if 'now))
|
||||
;; if)) ;; => now
|
||||
|
||||
;;(let ((x 'outer))
|
||||
;; (let-syntax ((m (syntax-rules () ((m) x))))
|
||||
;; (let ((x 'inner))
|
||||
;; (m)))) ;; Should be outer
|
||||
|
||||
(write
|
||||
(let ((x 'outer))
|
||||
(let-syntax ((m (syntax-rules () ((m) x))))
|
||||
(define-syntax m ;; Testing this out, but let-syntax needs to work, too
|
||||
(syntax-rules () ((m) x)))
|
||||
(let ((x 'inner))
|
||||
(m)))) ;; Should be outer
|
||||
(m))) ;; Should be outer
|
||||
)
|
||||
|
||||
(write (m)) ;; Should be an error, of course
|
||||
|
|
Loading…
Add table
Reference in a new issue