17.14.1 Import Macros
space | |
definition | |
impo.macro 'rkt $(name :: Identifier) $('/ $(next :: Identifier)') ...':
'lib($(Syntax.make(str, name)))'
impo.modifier 'as_rkt: $(name :: Identifier); ...':
'rename:
$name as $(Syntax.make_id("rkt_" +& name, name))
...'
impo.modifier 'expose_as_rkt: $(name :: Identifier); ...':
~import imp
let '$(ex_imp :: impo_meta.ParsedModifier(imp))':
'expose: $name; ...'
let '$(rn_imp :: impo_meta.ParsedModifier(ex_imp))':
'as_rkt: $name; ...'
rn_imp
syntax class | ||||||
| ||||||
| ||||||
syntax class | ||||||
| ||||||
| ||||||
syntax class | ||||||
| ||||||
| ||||||
syntax class | ||||||
|
Analogous to expr_meta.Parsed, expr_meta.AfterPrefixParsed, and expr_meta.AfterInfixParsed, but for imports.
syntax class | ||||
|