The Magma Language

The Magma Language#

Syntax

Lexical structure, operators, expressions and statement syntax.

Syntax
Types & Categories

Magma’s type system, categories, structures and coercion rules.

Types & Categories
Control Flow

Conditionals, loops, break, continue and return statements.

Control Flow
Procedures & Functions

Defining and calling procedures, functions, intrinsics and forward declarations.

Procedures & Functions
Input & Output

Reading from stdin, writing to stdout, file I/O and formatting.

Input & Output
Error Handling

Exceptions, try/catch, assertions and debugging facilities.

Error Handling
Packages

Defining, attaching and using Magma packages and spec files.

Packages