From c60426c60a137b454f6177dcb2d563a942dde75f Mon Sep 17 00:00:00 2001
From: Eduardo Julian
Date: Wed, 13 Feb 2019 18:44:02 -0400
Subject: - WIP: Moved some of the JS compiler machinery over to stdlib. -
DRYed the reference translation machinery.
---
.../luxc/lang/translation/js/structure.jvm.lux | 31 ----------------------
1 file changed, 31 deletions(-)
delete mode 100644 new-luxc/source/luxc/lang/translation/js/structure.jvm.lux
(limited to 'new-luxc/source/luxc/lang/translation/js/structure.jvm.lux')
diff --git a/new-luxc/source/luxc/lang/translation/js/structure.jvm.lux b/new-luxc/source/luxc/lang/translation/js/structure.jvm.lux
deleted file mode 100644
index 580f48807..000000000
--- a/new-luxc/source/luxc/lang/translation/js/structure.jvm.lux
+++ /dev/null
@@ -1,31 +0,0 @@
-(.module:
- lux
- (lux (control [monad #+ do])
- (data [text]
- text/format)
- [macro])
- (luxc ["&" lang]
- (lang [synthesis #+ Synthesis]
- (host [js #+ JS Expression Statement])))
- [//]
- (// [".T" runtime]))
-
-(def: #export (translate-tuple translate elemsS+)
- (-> (-> Synthesis (Meta Expression)) (List Synthesis) (Meta Expression))
- (case elemsS+
- #.Nil
- (:: macro.Monad wrap runtimeT.unit)
-
- (#.Cons singletonS #.Nil)
- (translate singletonS)
-
- _
- (do macro.Monad
- [elemsT+ (monad.map @ translate elemsS+)]
- (wrap (format "[" (text.join-with "," elemsT+) "]")))))
-
-(def: #export (translate-variant translate tag tail? valueS)
- (-> (-> Synthesis (Meta Expression)) Nat Bit Synthesis (Meta Expression))
- (do macro.Monad
- [valueT (translate valueS)]
- (wrap (runtimeT.variant tag tail? valueT))))
--
cgit v1.2.3