From cbc41f10fb3e0e776767d2266b22068172b0f69a Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 1 Mar 2021 01:49:30 -0400 Subject: Done with Ruby. --- compilers.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'compilers.md') 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 ``` --- -- cgit v1.2.3