blob: c7043eeb7aecb8b50e494fe3ab5e9b6d41b75351 (
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
30
|
(.module:
lux
(lux [macro "meta/" Monad<Meta>])
(luxc (lang (host [scheme #+ Expression])))
[//]
(// [".T" runtime]))
(def: #export translate-bool
(-> Bool (Meta Expression))
(|>> scheme.bool meta/wrap))
(def: #export translate-int
(-> Int (Meta Expression))
(|>> scheme.int meta/wrap))
(def: #export translate-nat
(-> Nat (Meta Expression))
(|>> (:! Int) scheme.int meta/wrap))
(def: #export translate-deg
(-> Deg (Meta Expression))
(|>> (:! Int) scheme.int meta/wrap))
(def: #export translate-frac
(-> Frac (Meta Expression))
(|>> scheme.float meta/wrap))
(def: #export translate-text
(-> Text (Meta Expression))
(|>> scheme.string meta/wrap))
|