From b216900093c905b3b20dd45c69e577b192e2f7a3 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 25 Aug 2021 16:47:50 -0400 Subject: Updates to the Lua compiler. --- lux-lua/commands.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'lux-lua/commands.md') diff --git a/lux-lua/commands.md b/lux-lua/commands.md index 769ea10d8..0fdd12b75 100644 --- a/lux-lua/commands.md +++ b/lux-lua/commands.md @@ -1,3 +1,7 @@ +# Notes + +* TODO: Switch to [neolua](https://github.com/neolithos/neolua) ASAP. Rembulan is too immature of an implementation. + # Test ``` @@ -9,16 +13,10 @@ cd ~/lux/lux-lua/ && lein clean && lein lux auto test ``` ## Develop -cd ~/lux/lux-lua/ \ -&& lein clean \ -&& lein lux auto build - -## Build JVM-based compiler ## NOTE: Must set lux/control/concurrency/thread.parallelism = 1 before compiling to make sure Rembulan doesn't cause trouble. cd ~/lux/lux-lua/ \ && lein clean \ -&& lein lux build \ -&& mv target/program.jar jvm_based_compiler.jar +&& lein lux auto build ``` # Try @@ -27,7 +25,7 @@ cd ~/lux/lux-lua/ \ ## Compile Lux's Standard Library's tests using a JVM-based compiler. cd ~/lux/stdlib/ \ && lein clean \ -&& java -jar ~/lux/lux-lua/jvm_based_compiler.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux \ +&& java -jar ~/lux/lux-lua/target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux \ && ~/lua-5.4.2/install/bin/lua ~/lux/stdlib/target/program.lua ``` @@ -35,6 +33,6 @@ cd ~/lux/stdlib/ \ ``` cd ~/lux/lux-lua/ \ -&& mvn install:install-file -Dfile=jvm_based_compiler.jar -DgroupId=com.github.luxlang -DartifactId=lux-lua -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar +&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-lua -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar ``` -- cgit v1.2.3