Getting Started

This guide will get you up and running with Quartz in just a few minutes. By the end, you'll have built and run your first Quartz program.

Requirements

Before you begin, make sure you have:

Installation

Clone the Repository

git clone --branch development https://github.com/franieri/quartz.git
cd quartz

Build from Source

The easiest way to build Quartz is using the provided script:

bash build.sh

This will:

  1. Configure CMake in the build/ directory
  2. Build the core runtime (qz-core)
  3. Build the main executable (quartz)
  4. Build all standard library extensions

💡 Build Options For a clean rebuild: bash build.sh --clean
For verbose output: bash build.sh --verbose

Verify Installation

./build/quartz --version

You should see the Quartz version information.

Your First Program

Create a file called hello.qz:

import system.io as io;

io.out.println("Hello, Quartz!");

let name = "World";
io.out.println("Welcome to Quartz,", name);

Run it:

./build/quartz hello.qz

Output:

Hello, Quartz!
Welcome to Quartz, World

Next Steps

Now that you have Quartz running, explore these resources: