aboutsummaryrefslogtreecommitdiff
path: root/lux-js
diff options
context:
space:
mode:
authorEduardo Julian2021-09-19 03:07:56 -0400
committerEduardo Julian2021-09-19 03:07:56 -0400
commit0bc2c541ab27e44b760618d15a248a794ab2f98e (patch)
treeb040ba5c8558d4b112acc1edc97839e3db4e40dd /lux-js
parentad729814254ec3fef8c75b59472bc8108ec7c4c7 (diff)
Added STDLIB documentation for the different target platforms.
Diffstat (limited to 'lux-js')
-rw-r--r--lux-js/commands.md1
-rw-r--r--lux-js/source/program.lux12
2 files changed, 7 insertions, 6 deletions
diff --git a/lux-js/commands.md b/lux-js/commands.md
index 10029d6a2..6d2b1d54e 100644
--- a/lux-js/commands.md
+++ b/lux-js/commands.md
@@ -20,6 +20,7 @@ cd ~/lux/lux-js/ \
&& mv target/program.jar jvm_based_compiler.jar
## Use JVM-based compiler to produce a JS/Node-based compiler.
+## @ library/lux/data/text TODO: Comment/turn-off when generating a JS compiler using a JVM-based compiler because Nashorn's implementation of "replaceAll" is incorrect.
cd ~/lux/lux-js/ \
&& lein clean \
&& time java -jar jvm_based_compiler.jar build --source ~/lux/lux-js/source --target ~/lux/lux-js/target --module program \
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux
index 43f03a501..8b1d38e99 100644
--- a/lux-js/source/program.lux
+++ b/lux-js/source/program.lux
@@ -505,9 +505,9 @@
(org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory::new))]
(: (Host _.Expression _.Statement)
(implementation
- (def: evaluate! (..evaluate! interpreter))
- (def: execute! (..execute! interpreter))
- (def: define! (..define! interpreter))
+ (def: evaluate (..evaluate! interpreter))
+ (def: execute (..execute! interpreter))
+ (def: define (..define! interpreter))
(def: (ingest context content)
(|> content (# utf8.codec decoded) try.trusted (:as _.Statement)))
@@ -564,9 +564,9 @@
(IO (Host _.Expression _.Statement))
(io (: (Host _.Expression _.Statement)
(implementation
- (def: evaluate! ..evaluate!)
- (def: execute! ..execute!)
- (def: define! ..define!)
+ (def: evaluate ..evaluate!)
+ (def: execute ..execute!)
+ (def: define ..define!)
(def: (ingest context content)
(|> content (# utf8.codec decoded) try.trusted (:as _.Statement)))