aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/meta/target/js.lux
blob: 82444290c4f948fde47e82b2dbf8b8b6830c9791 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\format (.only format)]]
    [collection
     ["[0]" list]]]]]
 [\\library
  ["[0]" /]])

(def .public documentation
  (List $.Documentation)
  (let [statement (list ($.definition /.Statement)
                        ($.definition /.Loop)
                        ($.definition /.Label)
                        ($.definition /.then)
                        ($.definition /.function_definition)
                        ($.definition /.statement)
                        ($.definition /.use_strict)
                        ($.definition /.declare)
                        ($.definition /.define)
                        ($.definition /.set)
                        ($.definition /.throw)
                        ($.definition /.return)
                        ($.definition /.delete)
                        ($.definition /.if)
                        ($.definition /.when)
                        ($.definition /.while)
                        ($.definition /.do_while)
                        ($.definition /.try)
                        ($.definition /.for)
                        ($.definition /.label)
                        ($.definition /.with_label)
                        ($.definition /.break)
                        ($.definition /.break_at)
                        ($.definition /.continue)
                        ($.definition /.continue_at)
                        ($.definition /.comment)
                        ($.definition /.switch))
        arithmetic (list ($.definition /.=)
                         ($.definition /.<)
                         ($.definition /.<=)
                         ($.definition /.>)
                         ($.definition /.>=)
                         ($.definition /.+)
                         ($.definition /.-)
                         ($.definition /.*)
                         ($.definition /./)
                         ($.definition /.%)
                         ($.definition /.left_shift)
                         ($.definition /.arithmetic_right_shift)
                         ($.definition /.logic_right_shift)
                         ($.definition /.or)
                         ($.definition /.and)
                         ($.definition /.bit_xor)
                         ($.definition /.bit_or)
                         ($.definition /.bit_and)
                         ($.definition /.not)
                         ($.definition /.bit_not)
                         ($.definition /.opposite))]
    (list.partial ($.module /._
                            "")

                  ($.definition /.Code)
                  ($.definition /.code)
                  ($.definition /.Expression)
                  ($.definition /.Computation)
                  ($.definition /.Location)
                  ($.definition /.Var)
                  ($.definition /.Access)
                  ($.definition /.Literal)
                  ($.definition /.null)
                  ($.definition /.undefined)
                  ($.definition /.boolean)
                  ($.definition /.number)
                  ($.definition /.string)
                  ($.definition /.array)
                  ($.definition /.var)
                  ($.definition /.at)
                  ($.definition /.the)
                  ($.definition /.apply)
                  ($.definition /.do)
                  ($.definition /.object)
                  ($.definition /.,)
                  ($.definition /.function)
                  ($.definition /.closure)
                  ($.definition /.to_i32)
                  ($.definition /.i32)
                  ($.definition /.int)
                  ($.definition /.?)
                  ($.definition /.type_of)
                  ($.definition /.new)
                  ($.definition /.++)
                  ($.definition /.--)
                  ($.definition /.not_a_number?)

                  (list.together
                   (list statement
                         arithmetic))
                  )))