aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/macro/syntax/type/variable.lux
blob: 9f69dfbe05ea1d37622db735730fa18e1ec1adbc (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
(.module:
  [library
   [lux #*
    [abstract
     [equivalence (#+ Equivalence)]]
    [control
     [parser
      ["<.>" code (#+ Parser)]]]
    [data
     ["." text]]
    [macro
     ["." code]]]])

(type: .public Variable
  {#.doc (example "A variable'S name.")}
  Text)

(def: .public equivalence
  (Equivalence Variable)
  text.equivalence)

(def: .public format
  (-> Variable Code)
  code.local_identifier)

(def: .public parser
  {#.doc "Parser for the common type variable/parameter used by many macros."}
  (Parser Variable)
  <code>.local_identifier)