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

(type: #export Variable
  Text)

(def: #export equivalence
  (Equivalence Variable)
  text.equivalence)

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

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