mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-06 20:56:38 +02:00
Adding a syntax test inserting a top-level identifier also referenced by a macro template.
This commit is contained in:
parent
4f8dfe2d3c
commit
b8b821e75a
1 changed files with 11 additions and 0 deletions
|
@ -404,6 +404,17 @@
|
|||
(be-like-begin sequence)
|
||||
(test 4 (sequence 1 2 3 4))
|
||||
|
||||
(define-syntax jabberwocky
|
||||
(syntax-rules ()
|
||||
((_ hatter)
|
||||
(begin
|
||||
(define march-hare 42)
|
||||
(define-syntax hatter
|
||||
(syntax-rules ()
|
||||
((_) march-hare)))))))
|
||||
(jabberwocky mad-hatter)
|
||||
(test 42 (mad-hatter))
|
||||
|
||||
(test 'ok (let ((=> #f)) (cond (#t => 'ok))))
|
||||
|
||||
(test-end)
|
||||
|
|
Loading…
Add table
Reference in a new issue