aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/meta/code.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/documentation/lux/meta/code.lux')
-rw-r--r--stdlib/source/documentation/lux/meta/code.lux37
1 files changed, 37 insertions, 0 deletions
diff --git a/stdlib/source/documentation/lux/meta/code.lux b/stdlib/source/documentation/lux/meta/code.lux
new file mode 100644
index 000000000..df50d5049
--- /dev/null
+++ b/stdlib/source/documentation/lux/meta/code.lux
@@ -0,0 +1,37 @@
+(.require
+ [library
+ [lux (.except char local global)
+ ["$" documentation]
+ [data
+ [text
+ ["%" \\format (.only format)]]
+ [collection
+ ["[0]" list]]]]]
+ [\\library
+ ["[0]" /]])
+
+(.def .public documentation
+ (.List $.Module)
+ ($.module /._
+ ""
+ [($.default /.bit)
+ ($.default /.nat)
+ ($.default /.int)
+ ($.default /.rev)
+ ($.default /.frac)
+ ($.default /.text)
+ ($.default /.symbol)
+ ($.default /.form)
+ ($.default /.variant)
+ ($.default /.tuple)
+
+ ($.default /.equivalence)
+ ($.default /.format)
+
+ ($.documentation /.local
+ "Produces a local symbol (an symbol with no module prefix).")
+
+ ($.documentation /.replaced
+ ""
+ [(replaced original substitute ast)])]
+ []))