hello.orchid
1
2
3
4
5
6
7
8
9
10
11
12
13
-- The simplest possible Orchid program that visibly does something. Technically not the absolute -- shortest in terms of bytes, but the extraneous code is purely for programmer convenience and -- doesn't translate into any runtime code. -- Not strictly necessary. Brings `console` into module scope. import! orchid.console; -- The entry point. It is technically a procedure, but since it's got special properties, it has a -- special keyword to declare it. main! { -- Other procedures can be invoked via the `call! PROC [ARGS...]` statement. call! console.write_line "Hello, Orchid!"; }