Blocks

A block is a sequence of statements optionally terminated by an expression which the block evaluates into. If no expression is specified, then the block evaluates into unit.

Block ::= { Stmt* Expr? }

Examples

Expression-blocks are represented by the do keyword.

{{#include ../../../arc-lang/examples/blocks.arc:example}}