aboutsummaryrefslogtreecommitdiff
path: root/compilers.md
diff options
context:
space:
mode:
Diffstat (limited to 'compilers.md')
-rw-r--r--compilers.md26
1 files changed, 14 insertions, 12 deletions
diff --git a/compilers.md b/compilers.md
index 0bea1a06c..3e70d6137 100644
--- a/compilers.md
+++ b/compilers.md
@@ -198,25 +198,25 @@ cd ~/lux/stdlib/ \
---
-# PHP compiler
+# Ruby compiler
## Test
```
-cd ~/lux/lux-php/ && lein lux auto test
-cd ~/lux/lux-php/ && lein clean && lein lux auto test
+cd ~/lux/lux-ruby/ && lein lux auto test
+cd ~/lux/lux-ruby/ && lein clean && lein lux auto test
```
## Build
```
## Develop
-cd ~/lux/lux-php/ \
+cd ~/lux/lux-ruby/ \
&& lein clean \
&& lein lux auto build
## Build JVM-based compiler
-cd ~/lux/lux-php/ \
+cd ~/lux/lux-ruby/ \
&& lein clean \
&& lein lux build \
&& mv target/program.jar jvm_based_compiler.jar
@@ -228,30 +228,32 @@ cd ~/lux/lux-php/ \
## Compile Lux's Standard Library's tests using a JVM-based compiler.
cd ~/lux/stdlib/ \
&& lein clean \
-&& time java -jar ~/lux/lux-php/jvm_based_compiler.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
+&& time java -jar ~/lux/lux-ruby/target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
+
+RUBY_THREAD_VM_STACK_SIZE=15700000 ruby ~/lux/stdlib/target/program.rb
```
---
-# Ruby compiler
+# PHP compiler
## Test
```
-cd ~/lux/lux-ruby/ && lein lux auto test
-cd ~/lux/lux-ruby/ && lein clean && lein lux auto test
+cd ~/lux/lux-php/ && lein lux auto test
+cd ~/lux/lux-php/ && lein clean && lein lux auto test
```
## Build
```
## Develop
-cd ~/lux/lux-ruby/ \
+cd ~/lux/lux-php/ \
&& lein clean \
&& lein lux auto build
## Build JVM-based compiler
-cd ~/lux/lux-ruby/ \
+cd ~/lux/lux-php/ \
&& lein clean \
&& lein lux build \
&& mv target/program.jar jvm_based_compiler.jar
@@ -263,7 +265,7 @@ cd ~/lux/lux-ruby/ \
## Compile Lux's Standard Library's tests using a JVM-based compiler.
cd ~/lux/stdlib/ \
&& lein clean \
-&& time java -jar ~/lux/lux-ruby/jvm_based_compiler.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
+&& time java -jar ~/lux/lux-php/jvm_based_compiler.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux
```
---