Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Scope

Variables declared inside a block are intended to belong to that block.

Example:

Open Nunction Main()
{
    Int I = 10;

    If (I > 0)
    {
        Int V = 20;
    }
}

V is declared inside the If block.

The AST represents nested blocks, while the current backend uses a function-level variable map.

Full lexical scope, shadowing, and capture rules are still under development.

This is an example of a feature that can be represented at the AST level without being fully executable in the backend yet.


← Previous Next →