aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/macro/syntax/type/variable.lux
blob: 5bb62d3022af6b077e3b1ddc9ac37d8b1d0ca3eb (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
(.using
  [library
   [lux "*"
    [abstract
     [equivalence {"+" Equivalence}]]
    [control
     [parser
      ["<[0]>" code {"+" Parser}]]]
    [data
     ["[0]" text]]
    [macro
     ["[0]" code]]]])

(type: .public Variable
  Text)

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

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

(def: .public parser
  (Parser Variable)
  <code>.local_symbol)