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

Hello World

A minimal Sydrogen program is:

Open Nunction Main()
{
    Print("Hello, World!");
}

Main is the entry point of the program.

Print writes a value to standard output.

The Open keyword controls visibility, and Nunction declares a function that does not return a value. Together they describe a public function called Main that contains the body of the program.

A Sydrogen source file containing only the program above is a complete executable program. It can be saved with a .anvil extension and compiled by Furnace.


← Previous Next →