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

Your First Dewy Program

Save this as hello.dewy:

printl"Hello, Dewy!"
dewy check hello.dewy
dewy hello.dewy
dewy build hello.dewy --release -o hello

A file runs from top to bottom. To start with an entry point, define main; it runs once, automatically. Plain dewy with no file starts the interactive prompt.

The output is Hello, Dewy! followed by a newline. Check source without emitting a binary; build when you want to keep an executable. In a checkout, replace dewy with ./tools/dewy.