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

Visibility

Sydrogen uses visibility modifiers to control declaration visibility.

The current visibility keywords are:

  • Open
  • Closed
  • Showcase

Example:

Open Nunction Main()
{
}

The complete module and visibility system is still under development.

Showcase

Showcase is a third visibility modifier.

It is currently parsed and stored in the AST but does not affect code generation.

It is reserved for future functionality related to exported declarations, documentation, or REPL introspection.

Example:

Showcase Nunction Helper()
{
    Print("helper");
}

← Previous Next →