mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-13 15:57:36 +02:00
Adding test file
This commit is contained in:
parent
408ef442c8
commit
3446d46a6f
1 changed files with 15 additions and 0 deletions
15
tests/let-syntax.scm
Normal file
15
tests/let-syntax.scm
Normal file
|
@ -0,0 +1,15 @@
|
|||
(import (scheme base))
|
||||
|
||||
;; (let-syntax ((given-that (syntax-rules ()
|
||||
;; ((given-that test stmt1 stmt2 ...)
|
||||
;; (if test
|
||||
;; (begin stmt1
|
||||
;; stmt2 ...))))))
|
||||
;; (let ((if #t))
|
||||
;; (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
|
Loading…
Add table
Reference in a new issue