Java 17
or 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.jar
file
There are some scripts in test
directory that will help you understand how to use this compiler. To use them,
use this workflow:
-
Add
.olang
files totest/src
-
Compile
compile.sh <file_name>.olang
- Run (will work only if there is class
Program
with empty constructor and methodrun
without arguments)
run.sh <file_name>.olang