aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux20
1 files changed, 20 insertions, 0 deletions
diff --git a/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux b/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux
new file mode 100644
index 000000000..61570143b
--- /dev/null
+++ b/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux
@@ -0,0 +1,20 @@
+(.module:
+ lux
+ (lux [macro "meta/" Monad<Meta>])
+ (luxc (lang (host ["_" php #+ CExpression]))))
+
+(def: #export translate-bool
+ (-> Bool (Meta CExpression))
+ (|>> _.bool meta/wrap))
+
+(def: #export translate-int
+ (-> Int (Meta CExpression))
+ (|>> _.int meta/wrap))
+
+(def: #export translate-frac
+ (-> Frac (Meta CExpression))
+ (|>> _.float meta/wrap))
+
+(def: #export translate-text
+ (-> Text (Meta CExpression))
+ (|>> _.string meta/wrap))