Getting Started¶
This guide will help you set up and start using the RuneScript Compiler.
Prerequisites¶
Before you begin, ensure you have Java 21 or higher installed on your system. You can verify your Java version by running:
If you don't have Java 21+, download and install it from the Oracle JDK or OpenJDK distribution.
Installation¶
- Download the latest
runescript.jarfrom the releases section of the repository - Place the JAR file in a convenient location on your system
Running Scripts¶
To run a RuneScript file, use the following command:
Example: Hello World¶
Create a file named hello.rn with the following content:
Run the script:
Expected output:
Example: Simple Calculation¶
Create a file named math.rn:
Run the script:
Expected output:
Example: Using the Pipe Operator¶
Create a file named pipe.rn to demonstrate the pipe operator:
Run the script:
Expected output:
Development Environment¶
For a better development experience, you can use any text editor or IDE that supports syntax highlighting for similar languages. The compiler handles all the compilation and execution steps for you.