aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/target.lux
blob: 11691d06ffab83cdc51cdbdafa75ae8eea25852d (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
(.using
  [library
   [lux {"-" char}
    ["$" documentation {"+" documentation:}]
    [data
     [text {"+" \n}
      ["%" format {"+" format}]]
     [collection
      ["[0]" list]]]]]
  [\\library
   ["[0]" /]]
  ["[0]" / "_"
   ["[1][0]" js]
   ["[1][0]" jvm]
   ["[1][0]" lua]
   ["[1][0]" python]
   ["[1][0]" ruby]])

(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."))

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