Hello, moon
A moon program starts in main. Function bodies are blocks, and the last expression in a block is its value. This first function returns void, so its only work is calling the built-in println function.
Edit the text and press Run. The runner compiles this exact .mn file with the toolchain version shown beside the result. moon source files always use the .mn extension.
fn main() {
println("Hello moon")
}
Examples use the moon toolchain version shown beside each result.
Output & diagnostics
Expected: Hello moon
Ctrl/⌘+Enter runs the current lesson.