aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/host/php.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-07-13 22:01:32 -0400
committerEduardo Julian2018-07-13 22:01:32 -0400
commit69fefab57c40f323d759dc444dbcebad15071585 (patch)
treedb08a3ea37c7818c8a98fc995d3c19440141b700 /new-luxc/source/luxc/lang/host/php.lux
parent6acf4ffc362c0f8ef77d96f8cfe991adb2d9a0eb (diff)
Re-named "Bool" type to "Bit".
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/host/php.lux8
1 files changed, 5 insertions, 3 deletions
diff --git a/new-luxc/source/luxc/lang/host/php.lux b/new-luxc/source/luxc/lang/host/php.lux
index 50d618f85..34c7c0535 100644
--- a/new-luxc/source/luxc/lang/host/php.lux
+++ b/new-luxc/source/luxc/lang/host/php.lux
@@ -23,7 +23,7 @@
(type: #export Global (Code' (Expression' Global')))
(type: #export Var (Code' (Expression' Var')))
(type: #export Argument
- {#reference? Bool
+ {#reference? Bit
#var Var})
(type: #export Computation (Code' (Expression' Computation')))
(type: #export Statement (Code' Statement'))
@@ -82,8 +82,10 @@
(:abstraction "NULL"))
(def: #export bool
- (-> Bool Computation)
- (|>> %b :abstraction))
+ (-> Bit Computation)
+ (|>> (case> true "true"
+ false "false")
+ :abstraction))
(def: #export int
(-> Int Computation)