diff options
author | Eduardo Julian | 2021-03-01 01:49:30 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-03-01 01:49:30 -0400 |
commit | cbc41f10fb3e0e776767d2266b22068172b0f69a (patch) | |
tree | 0344edcbe40edf51d16eb70b12a72e97e3c37f11 /compilers.md | |
parent | 69edb6de2ecf62881bcde1b8013c98450a6a52bc (diff) |
Done with Ruby.
Diffstat (limited to '')
-rw-r--r-- | compilers.md | 26 |
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 ``` --- |