8.12
7.13.2 Export Macros
space |
The space for bindings of identifiers that can be used within
export for exports and export modifiers.
definition |
Like expr.macro, but defines a macro for use in
export.
let [name, ...]:
Syntax.make_id(id +& i, id)
'names: $name ...'
Like defn.macro, but defines an identifier as an
export modifier, and an optional ~export declaration provides
an exp_id to be bound to the (opaque) export that is being
modified.
expo.modifier 'not_greetings':
'except: hello hi'
> namespace n:
not_greetings: all_defined
> n.bye
"bye"
> n.hello
hello: identifier not provided by n
syntax class | |||||
| |||||
| |||||
syntax class | |||||
| |||||
| |||||
syntax class | |||||
|
Provided as meta.
Analogous to expr_meta.Parsed, expr_meta.AfterPrefixParsed, , and expr_meta.AfterInfixParsed, but for exports.
syntax class | ||||
|
Analogous to expr_meta.Parsed, but parses an
export modifier applied to an export. The result is a parsed modified
export.