Java 17or higher
- Build JAR (output location is
./build/libs/CompilerOOP-{version}.jar)
./gradlew build- Run CLI
java -jar CompilerOOP-{version}.jar <file_path> [options]Available options (can be used together):
-bundle— compiles not only the provided file, but also the libraries-jar— wrap the output in a.jarfile
There are some scripts in test directory that will help you understand how to use this compiler. To use them,
use this workflow:
-
Add
.olangfiles totest/src -
Compile
compile.sh <file_name>.olang- Run (will work only if there is class
Programwith empty constructor and methodrunwithout arguments)
run.sh <file_name>.olang