aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/macro/local.lux
blob: 6f9783f90eda2a023325bedcb8781592078958b4 (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
28
(.using
  [library
   [lux {"-" char}
    ["$" documentation {"+" documentation:}]
    [data
     [text {"+" \n}
      ["%" format {"+" format}]]
     [collection
      ["[0]" list]]]]]
  [\\library
   ["[0]" /]])

(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 directives."
          \n "This code un-installs the macros."
          \n "NOTE: Always use this code once to clean-up..")
  [(push macros)])

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