From 0bc2c541ab27e44b760618d15a248a794ab2f98e Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 19 Sep 2021 03:07:56 -0400 Subject: Added STDLIB documentation for the different target platforms. --- lux-js/commands.md | 1 + lux-js/source/program.lux | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'lux-js') 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))) -- cgit v1.2.3