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:
- CMake 3.20+ - Build system
- Clang or GCC - C++17 compatible compiler
- Git - For cloning the repository
- Linux or macOS - Windows support coming soon
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:
- Configure CMake in the
build/directory - Build the core runtime (
qz-core) - Build the main executable (
quartz) - 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:
- Syntax Overview - Learn the language syntax
- Types & Variables - Understand the type system
- Standard Library - Explore built-in modules
- Classes & OOP - Object-oriented programming