aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/tool/compiler/phase/generation/scheme/primitive.lux
blob: 4bfa671613390abb2d0505b76e338e0d3fcb6984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(.module:
  [lux (#- i64)
   [target
    ["_" scheme (#+ Expression)]]])

(template [<name> <type> <code>]
  [(def: #export <name>
     (-> <type> Expression)
     <code>)]

  [bit  Bit       _.bool]
  [i64  (I64 Any) (|>> .int _.int)]
  [f64  Frac      _.float]
  [text Text      _.string]
  )