From ae7fc0207c8d3281882261642f6a8e0579985aa0 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 24 Feb 2021 16:39:42 -0400 Subject: Done with Python. --- compilers.md | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'compilers.md') diff --git a/compilers.md b/compilers.md index 1c2553fe9..beba9dcc3 100644 --- a/compilers.md +++ b/compilers.md @@ -145,31 +145,15 @@ cd ~/lux/lux-python/ \ && lein clean \ && lein lux build \ && mv target/program.jar jvm_based_compiler.jar - -## Use JVM-based compiler to produce a Python-based compiler. -cd ~/lux/lux-python/ \ -&& lein clean \ -&& time java -jar jvm_based_compiler.jar build --source ~/lux/lux-python/source --target ~/lux/lux-python/target --module program \ -&& mv target/program.py python_based_compiler.py -&& python3 -m compileall python_based_compiler.py -&& mv __pycache__/python_based_compiler.cpython-38.pyc python_based_compiler.pyc - -## Use Python-based compiler to produce another Python-based compiler. -cd ~/lux/lux-python/ \ -&& lein clean \ -&& time python3 python_based_compiler.pyc build --source ~/lux/lux-python/source --target ~/lux/lux-python/target --module program \ -&& mv target/program.py lux.py -&& python3 -m compileall lux.py -&& mv __pycache__/lux.cpython-38.pyc lux.pyc ``` ## Try ``` -## Compile Lux's Standard Library's tests using a Python-based compiler. +## Compile Lux's Standard Library's tests using a JVM-based compiler. cd ~/lux/stdlib/ \ && lein clean \ -&& time python3 ~/lux/lux-python/lux.pyc build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux +&& time java -jar ~/lux/lux-python/jvm_based_compiler.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux python3 ~/lux/stdlib/target/program.py ``` @@ -241,7 +225,10 @@ cd ~/lux/lux-php/ \ ## Try ``` -cd ~/lux/lux-php/ && java -jar target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux +## 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 ``` --- -- cgit v1.2.3