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