aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/common-lisp/primitive.jvm.lux
blob: 1c8c17bed1a4096659b5831c824ad8e2cf6e9dea (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 ["_" common-lisp #+ Expression])))
  [//]
  (// [".T" runtime]))

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

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

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

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