aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/lang/compiler/extension/analysis.lux
blob: 9a28ff39fbd2ff55b52194983e4ac83c71965895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(.module:
  lux
  (lux (data [text]
             (coll [list "list/" Functor<List>]
                   (dictionary ["dict" unordered #+ Dictionary]))))
  [///analysis #+ Analysis State]
  [///synthesis #+ Synthesis]
  [//]
  [/common]
  [/host])

(def: #export defaults
  (//.Bundle State Analysis Synthesis)
  (|> /common.extensions
      (dict.merge /host.extensions)
      dict.entries
      (list/map (function (_ [name proc]) [name (proc name)]))
      (dict.from-list text.Hash<Text>)))