Quick Start Guide
Requirements
- Java 23+
Visual Studio Code Extension
-
Install the extension from the VSCode Marketplace or search for "Karina" in the extensions tab of VSCode.
-
Download the Karina Language Server and configure the path in the extension settings (
karina.lspLocation
). -
Create a new folder called
src
in your workspace and create amain.krna
file in it with the following content:pub fn main(args: [string]) { println("Hello, World!") }
-
Create a
karina-build.json
file in the root of your workspace with the following content:{ "source": "src" }
-
Set a Keybind for the
karina.run.main
command or use the command palette to run.
Local Installation
If you'd prefer to compile the program yourself, you can follow the steps provided in the repository's README.
To verify the installation, run the following command:
>> karina --version
Create a new Project
You can use the karina CLI to create a new project with the following command:
>> karina new example
Your project folder should now look like this:
example/
└── src/
└── main.krna
The main.krna
file should contain the following code:
fn main(args: [string]) {
println("Hello, World!")
}
You can change the current directory into the new project folder:
>> cd example
Then, you can run the program with the following command:
>> karina run
Hello, World!
Use the --help
flag to see all available commands
Features
Take a look at the features and syntax here
Tooling
Install the Karina Language Server for VSCode