Welcome to the documentation

Granite is a toy programming language focused around being unconventional but still comfortable to use.

The main implementation of Granite is written in Rust and is capable of both parsing and executing Granite programs.

Get Granite

The current recommended way to use the Granite language is to compile and use the official Granite runtime.

The source code for the Granite runtime is available here. It is recommended to use the main branch. Only use another branch if you know what you're doing.

Where to start

It is recommended all new Granite programmers start at the syntax introduction to get familiar with how a Granite program is laid out.

Those familiar with the Granite language should use the reference to remind themselves of the operations or the further concepts section in the navbar to learn about things not covered in the guidebook!

Information

This version of the documentation is intended for Granite v1.0.3 and if you are running a newer version, there may be new features that aren't documented here or old features that no longer work.

This documentation is licenced under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International licence. All code examples within this documentation are dedicated to the public domain according to the CC0 1.0 Universal licence.