add with-syntax
This commit is contained in:
parent
03562eb8e3
commit
02e87cdc0c
|
@ -1,5 +1,7 @@
|
|||
#lang honu/core
|
||||
|
||||
require (forSyntax "with.honu");
|
||||
|
||||
provide print;
|
||||
|
||||
macro print ()
|
||||
|
|
9
collects/honu/private/with.honu
Normal file
9
collects/honu/private/with.honu
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang honu/core
|
||||
|
||||
provide withSyntax;
|
||||
|
||||
macro withSyntax () {
|
||||
_ [variable:identifier expr:expression] { b ... /* body:statement */ }; } {
|
||||
#sx scheme:syntax #sx(with-syntax ([variable expr_result]) (honu-unparsed-begin b ...))
|
||||
// applySchemeSyntax(#sx(real-syntax (with-syntax ([variable expr_result]) (honu-unparsed-begin b ...))))
|
||||
}
|
Loading…
Reference in New Issue
Block a user