aboutsummaryrefslogtreecommitdiff
path: root/lux-js
diff options
context:
space:
mode:
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)))