aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/tool/compiler/phase/generation/scheme/primitive.lux
blob: 5405e4c555086afab719b253050c866821c7b4df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(.module:
  [lux (#- i64)
   [host
    ["_" 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]
  )