aboutsummaryrefslogtreecommitdiff
path: root/lux-js
diff options
context:
space:
mode:
authorEduardo Julian2021-09-03 21:51:30 -0400
committerEduardo Julian2021-09-03 21:51:30 -0400
commit891b1cfc82322f8017f0a4f6b707d6fe52024545 (patch)
tree957429c0a2ad850b3570492deabe054fb2ace63e /lux-js
parente76add6e6f904677f5c09bb2a66dce283f1b848a (diff)
Unified tuple and record syntax.
Diffstat (limited to 'lux-js')
-rw-r--r--lux-js/project.lux8
-rw-r--r--lux-js/source/program.lux8
2 files changed, 8 insertions, 8 deletions
diff --git a/lux-js/project.lux b/lux-js/project.lux
index 2163ba34c..ec5be294c 100644
--- a/lux-js/project.lux
+++ b/lux-js/project.lux
@@ -1,5 +1,5 @@
{""
- {#identity ["com.github.luxlang" "lux-js" "0.6.0-SNAPSHOT"]
+ [#identity ["com.github.luxlang" "lux-js" "0.6.0-SNAPSHOT"]
#description "A JavaScript compiler for Lux."
#deploy_repositories {"snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"
@@ -10,8 +10,8 @@
#dependencies [["com.github.luxlang" "stdlib" "0.6.0-SNAPSHOT" "tar"]]
- #program "program"}
+ #program "program"]
"jvm"
- {#compiler ["com.github.luxlang" "lux-jvm" "0.6.0-SNAPSHOT" "jar"]
- #dependencies [["org.openjdk.nashorn" "nashorn-core" "15.1" "jar"]]}}
+ [#compiler ["com.github.luxlang" "lux-jvm" "0.6.0-SNAPSHOT" "jar"]
+ #dependencies [["org.openjdk.nashorn" "nashorn-core" "15.1" "jar"]]]}
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux
index ea9011dac..0fcf22f56 100644
--- a/lux-js/source/program.lux
+++ b/lux-js/source/program.lux
@@ -587,14 +587,14 @@
(IO (Platform [Register Text] _.Expression _.Statement))
(do io.monad
[host ..host]
- (in {#platform.&file_system (for {@.old (file.async file.default)
+ (in [#platform.&file_system (for {@.old (file.async file.default)
@.jvm (file.async file.default)
@.js file.default})
#platform.host host
#platform.phase js.generate
#platform.runtime runtime.generate
#platform.phase_wrapper ..phase_wrapper
- #platform.write (|>> _.code (\ utf8.codec encoded))})))
+ #platform.write (|>> _.code (\ utf8.codec encoded))])))
(def: (program context program)
(Program _.Expression _.Statement)
@@ -660,10 +660,10 @@
(program: [service /cli.service]
(let [extension ".js"]
(exec (do async.monad
- [_ (/.compiler {#/static.host @.js
+ [_ (/.compiler [#/static.host @.js
#/static.host_module_extension extension
#/static.target (/cli.target service)
- #/static.artifact_extension extension}
+ #/static.artifact_extension extension]
..expander
analysis.bundle
..platform