diff options
Diffstat (limited to 'stdlib/source/lux/tool/compiler/phase/translation/scheme/primitive.jvm.lux')
-rw-r--r-- | stdlib/source/lux/tool/compiler/phase/translation/scheme/primitive.jvm.lux | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/stdlib/source/lux/tool/compiler/phase/translation/scheme/primitive.jvm.lux b/stdlib/source/lux/tool/compiler/phase/translation/scheme/primitive.jvm.lux new file mode 100644 index 000000000..dc643bcbc --- /dev/null +++ b/stdlib/source/lux/tool/compiler/phase/translation/scheme/primitive.jvm.lux @@ -0,0 +1,25 @@ +(.module: + [lux (#- i64)] + [// + [runtime (#+ Operation)] + [// (#+ State) + ["//." // ("#/." monad) + [/// + [host + ["_" scheme (#+ Expression)]]]]]]) + +(def: #export bit + (-> Bit (Operation Expression)) + (|>> _.bool /////wrap)) + +(def: #export i64 + (-> (I64 Any) (Operation Expression)) + (|>> .int _.int /////wrap)) + +(def: #export f64 + (-> Frac (Operation Expression)) + (|>> _.float /////wrap)) + +(def: #export text + (-> Text (Operation Expression)) + (|>> _.string /////wrap)) |