aboutsummaryrefslogtreecommitdiff
path: root/lux-lua/commands.md
diff options
context:
space:
mode:
Diffstat (limited to 'lux-lua/commands.md')
-rw-r--r--lux-lua/commands.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/lux-lua/commands.md b/lux-lua/commands.md
new file mode 100644
index 000000000..3693fecec
--- /dev/null
+++ b/lux-lua/commands.md
@@ -0,0 +1,36 @@
+# Lua compiler
+
+## Test
+
+```
+cd ~/lux/lux-lua/ && lein lux auto test
+cd ~/lux/lux-lua/ && lein clean && lein lux auto test
+```
+
+## Build
+
+```
+## 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
+```
+
+## Try
+
+```
+## Compile Lux's Standard Library's tests using a JVM-based compiler.
+cd ~/lux/stdlib/ \
+&& lein clean \
+&& time java -jar ~/lux/lux-lua/jvm_based_compiler.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
+```
+