aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/r/primitive.jvm.lux
blob: 3652dfcfddcf76a0ebea8a401769af03f11cbcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(.module:
  lux
  (lux [macro "meta/" Monad<Meta>])
  (luxc (lang (host [r #+ Expression])))
  [//]
  (// [".T" runtime]))

(def: #export translate-bool
  (-> Bool (Meta Expression))
  (|>> r.bool meta/wrap))

(def: #export translate-int
  (-> Int (Meta Expression))
  (|>> runtimeT.int meta/wrap))

(def: #export translate-frac
  (-> Frac (Meta Expression))
  (|>> r.float meta/wrap))

(def: #export translate-text
  (-> Text (Meta Expression))
  (|>> r.string meta/wrap))