Getting Started
Zap is a systems programming language with ARC-managed classes, modules, overloads, a growing stdlib, and explicit unsafe escape hatches when you need lower-level access.
Quick start
Section titled “Quick start”- Build the compiler from source by following Installing from source.
- Compile the first example from First Program.
- Continue with Variables, Functions, and Classes.
What you will find in the docs
Section titled “What you will find in the docs”The docs cover:
- structs, enums, aliases, arrays, and global variables
- functions, overloads, named arguments, varargs, and
refparameters - classes with ARC, inheritance, dynamic dispatch, and weak references
- modules and imports with visibility control
std/io,std/string,std/process,std/fs,std/path,std/math,std/convert,std/error, andstd/mem- explicit
unsafeblocks and unsafe functions
Recommended order
Section titled “Recommended order”If you want a clean learning path through the docs:
- Variables
- Constants and globals
- Functions
- Overloads and named args
- References and varargs
- Arrays, structs, enums, and aliases
- Classes and ARC
- Modules and imports
- Standard library
- Unsafe
Read the reference
Section titled “Read the reference”The Doxygen reference documentation for Zap is available here.