QLox
A Lox interpreter written in Kotlin.
Usage
Requirements
- Eclipse Temurin™ OpenJDK 17 (https://adoptium.net/temurin/releases/)
- [optional] JetBrains IntelliJ IDEA (https://www.jetbrains.com/idea/download/)
Use pre-built JAR
-
Get artifact from latest GitHub Actions run
-
Unzip the artifact
-
Create a plain text file with the Lox code you want to run
-
Check the version of the interpreter of the JAR with the
-version
flagjava -jar QLox-[version]-[<stage>]-[revision].jar -version
-
Run the JAR with the file as argument
java -jar QLox-[version]-[<stage>]-[revision].jar <file>
Build from source
- Clone the repository
- Open the project in IntelliJ IDEA
- Wait for Gradle to configure the project
- Run the Gradle
shadowJar
task (underTasks > shadow
) - Find the built JAR in
build/distributions
- Follow the steps from the previous section to run the JAR