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

(.def .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [($.default /.old)
             ($.default /.js)
             ($.default /.jvm)
             ($.default /.lua)
             ($.default /.python)
             ($.default /.ruby)
             ($.default /.common_lisp)
             ($.default /.php)
             ($.default /.r)
             ($.default /.scheme)

             ($.documentation /.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."))]
            [/js.documentation
             /jvm/type.documentation
             /lua.documentation
             /python.documentation
             /ruby.documentation]))