lux/macro
Macros
expand
## Performs a macro-expansion and logs the resulting ASTs.
## You can either use the resulting ASTs, or omit them.
## By omitting them, this macro produces nothing (just like the lux;comment macro).
(
expand (def: (foo bar baz)
(-> Int Int Int)
(i.+ bar baz)))
expand-all
## Performs a macro-expansion and logs the resulting ASTs.
## You can either use the resulting ASTs, or omit them.
## By omitting them, this macro produces nothing (just like the lux;comment macro).
(
expand-all (def: (foo bar baz)
(-> Int Int Int)
(i.+ bar baz)))
expand-once
## Performs a macro-expansion and logs the resulting ASTs.
## You can either use the resulting ASTs, or omit them.
## By omitting them, this macro produces nothing (just like the lux;comment macro).
(
expand-once (def: (foo bar baz)
(-> Int Int Int)
(i.+ bar baz)))