aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/php/reference.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/php/reference.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/php/reference.jvm.lux37
1 files changed, 0 insertions, 37 deletions
diff --git a/new-luxc/source/luxc/lang/translation/php/reference.jvm.lux b/new-luxc/source/luxc/lang/translation/php/reference.jvm.lux
deleted file mode 100644
index 2415963d1..000000000
--- a/new-luxc/source/luxc/lang/translation/php/reference.jvm.lux
+++ /dev/null
@@ -1,37 +0,0 @@
-(.module:
- lux
- (lux [macro]
- (data [text]
- text/format))
- (luxc ["&" lang]
- (lang [".L" variable #+ Variable Register]
- (host ["_" php #+ Var])))
- [//]
- (// [".T" runtime]))
-
-(template [<register> <prefix>]
- [(def: #export <register>
- (-> Register Var)
- (|>> (:coerce Int) %i (format <prefix>) _.var))]
-
- [closure "c"]
- [variable "v"])
-
-(def: #export (local var)
- (-> Variable Var)
- (if (variableL.captured? var)
- (closure (variableL.captured-register var))
- (variable (:coerce Nat var))))
-
-(def: #export global
- (-> Name Var)
- (|>> //.definition-name _.var))
-
-(template [<name> <input> <converter>]
- [(def: #export <name>
- (-> <input> (Meta Var))
- (|>> <converter> (:: macro.Monad<Meta> wrap)))]
-
- [translate-variable Variable local]
- [translate-definition Name global]
- )