Skip to content

Experimental documentation — Work in progress

This page has not completed the documentation audit. Current documentation version: experimental.

Getting started

This path takes you from no Sagan installation to a running native program.

  1. Install Sagan on Windows x64, or build it from source.
  2. Write your first program and run it from Git Bash.
  3. Follow the language tour to learn the main features.
  4. Optionally install the VS Code extension for syntax coloring.

The simplest command is:

sagan program.sagan

Sagan reads the file, checks it, generates C++, compiles that C++, and runs the resulting native program. If a lexical, syntax, name, type, module, or package error is found, Sagan reports it before native compilation.