aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/control/remember.lux
blob: 955505c5c12755b29e3881d28ce289506a5ea656 (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
29
30
31
32
33
34
35
36
37
38
(.module:
  [library
   [lux "*"
    ["$" documentation {"+" [documentation:]}]
    [data
     [text {"+" [\n]}
      ["%" format {"+" [format]}]]]
    [macro
     ["." template]]]]
  [\\library
   ["." /]])

(template [<name> <type>]
  [(`` (documentation: <name>
         (format "A" <type> " message with an expiration date."
                 \n "Can have an optional piece of code to focus on.")
         [((~~ (template.identifier [<name>]))
           "2022-04-01"
           "Do this, that and the other.")]
         [((~~ (template.identifier [<name>]))
           "2022-04-01"
           "Improve the performace."
           (some (complicated (computation 123))))]))]

  [/.remember ""]
  [/.to_do  " TODO"]
  [/.fix_me " FIXME"]
  )

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..remember
             ..to_do
             ..fix_me
             ($.default /.must_remember)]
            []))