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