mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
22 lines
822 B
Plaintext
22 lines
822 B
Plaintext
// Snowball compiler (MIT) /l、
|
||
// https://github.com/snowball-lang/snowball (゚、 。7
|
||
// ⠀ l、゙~ヽ
|
||
// Simple example for the lang じし(_,)ノ
|
||
// Docs: https://snowball-lang.gitbook.io/docs/
|
||
|
||
// Import the core library.
|
||
// This is required for the println function.
|
||
import std::io;
|
||
|
||
// The main function is the entry point of the program.
|
||
// It is called when the program is started.
|
||
public func main() i32 {
|
||
// This is a function from the standard library.
|
||
// It prints the given string to the console.
|
||
io::println("Hello, world!");
|
||
|
||
// The return value of the main function is the exit code of the program.
|
||
// A value of 0 means that the program exited successfully.
|
||
return 0;
|
||
}
|