aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/meta/target.lux
blob: 4c027dabe7149e801f322d5140505b1778f53808 (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
(.require
 [library
  [lux (.except)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\format (.only format)]]
    [collection
     ["[0]" list (.use "[1]#[0]" monoid)]]]]]
 [\\library
  ["[0]" /]]
 ["[0]" /
  ["[1][0]" js]
  ["[1][0]" jvm/type]
  ["[1][0]" lua]
  ["[1][0]" python]
  ["[1][0]" ruby]])

(def .public documentation
  (List $.Documentation)
  (list.partial ($.module /._
                          "")

                ($.definition /.old)
                ($.definition /.js)
                ($.definition /.jvm)
                ($.definition /.lua)
                ($.definition /.python)
                ($.definition /.ruby)
                ($.definition /.common_lisp)
                ($.definition /.php)
                ($.definition /.r)
                ($.definition /.scheme)

                ($.definition /.Target
                  (format "The name/ID of a platform targetted by a Lux compiler."
                          \n "This information can be used to generate code targetting specific platforms, and to make programs cross-platform."))

                (all list#composite
                     /js.documentation
                     /jvm/type.documentation
                     /lua.documentation
                     /python.documentation
                     /ruby.documentation
                     )
                ))