aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/macro/local.lux
blob: e71a685fbae4e3a9a413cbcd5480bac8e3f55e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(.require
 [library
  [lux (.except char)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\format (.only format)]]
    [collection
     ["[0]" list]]]]]
 [\\library
  ["[0]" /]])

(.def .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [($.default /.unknown_module)
             ($.default /.cannot_shadow_definition)
             ($.default /.unknown_definition)

             ($.documentation /.push
               (format "Installs macros in the compiler-state, with the given names."
                       \n "Yields code that can be placed either as expression or as declarations."
                       \n "This code un-installs the macros."
                       \n "NOTE: Always use this code once to clean-up..")
               [(push macros)])]
            []))