aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/macro/syntax/type/variable.lux
blob: 363f85fc07d9abdfac02b21463fd798088a9fd85 (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
(.require
 [library
  [lux (.except)
   [abstract
    [equivalence (.only Equivalence)]]
   [data
    ["[0]" text]]
   [meta
    ["[0]" code (.only)
     ["<[1]>" \\parser (.only Parser)]]]]])

(type .public Variable
  Text)

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

(def .public format
  (-> Variable Code)
  code.local)

(def .public parser
  (Parser Variable)
  <code>.local)