aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/meta/macro.lux
diff options
context:
space:
mode:
authorEduardo Julian2022-07-08 17:47:23 -0400
committerEduardo Julian2022-07-08 17:47:23 -0400
commit7976268575e7c6910dfba2d2733e8cc1883678e7 (patch)
tree0ce156081612235c0df5e2ad9167be3fc5d75c6c /stdlib/source/documentation/lux/meta/macro.lux
parent39325bb36c6f6459c861ef12f9e99b9e66b52594 (diff)
Re-named the "documentation" macro to "definition".
Diffstat (limited to 'stdlib/source/documentation/lux/meta/macro.lux')
-rw-r--r--stdlib/source/documentation/lux/meta/macro.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/documentation/lux/meta/macro.lux b/stdlib/source/documentation/lux/meta/macro.lux
index da66da131..6e2557f3f 100644
--- a/stdlib/source/documentation/lux/meta/macro.lux
+++ b/stdlib/source/documentation/lux/meta/macro.lux
@@ -18,29 +18,29 @@
(.List $.Module)
($.module /._
""
- [($.documentation /.single_expansion
+ [($.definition /.single_expansion
(format "Given code that requires applying a macro, does it once and returns the result."
\n "Otherwise, returns the code as-is.")
[(single_expansion syntax)])
- ($.documentation /.expansion
+ ($.definition /.expansion
(format "Given code that requires applying a macro, expands repeatedly until no more direct macro-calls are left."
\n "Otherwise, returns the code as-is.")
[(expansion syntax)])
- ($.documentation /.full_expansion
+ ($.definition /.full_expansion
"Expands all macro-calls everywhere recursively, until only primitive/base code remains."
[(full_expansion syntax)])
- ($.documentation /.symbol
+ ($.definition /.symbol
(format "Generates a unique name as a Code node (ready to be used in code templates)."
\n "A prefix can be given (or just be empty text) to better identify the code for debugging purposes.")
[(symbol prefix)])
- ($.documentation /.wrong_syntax_error
+ ($.definition /.wrong_syntax_error
"A generic error message for macro syntax failures.")
- ($.documentation /.with_symbols
+ ($.definition /.with_symbols
"Creates new symbols and offers them to the body expression."
[(def synchronized
(syntax (_ [lock any
@@ -52,11 +52,11 @@
(, g!_) ("jvm monitorexit" (, g!lock))]
(, g!body))))))))])
- ($.documentation /.one_expansion
+ ($.definition /.one_expansion
"Works just like expand, except that it ensures that the output is a single Code token."
[(one_expansion token)])
- ($.documentation /.log_single_expansion!
+ ($.definition /.log_single_expansion!
(format "Performs a macro-expansion and logs the resulting code."
\n "You can either use the resulting code, or omit them."
\n "By omitting them, this macro produces nothing (just like the lux.comment macro).")
@@ -69,7 +69,7 @@
(-> Int Int Int)
(int.+ bar baz)))])
- ($.documentation /.log_expansion!
+ ($.definition /.log_expansion!
(format "Performs a macro-expansion and logs the resulting code."
\n "You can either use the resulting code, or omit them."
\n "By omitting them, this macro produces nothing (just like the lux.comment macro).")
@@ -82,7 +82,7 @@
(-> Int Int Int)
(int.+ bar baz)))])
- ($.documentation /.log_full_expansion!
+ ($.definition /.log_full_expansion!
(format "Performs a macro-expansion and logs the resulting code."
\n "You can either use the resulting code, or omit them."
\n "By omitting them, this macro produces nothing (just like the lux.comment macro).")