Two programs and a constant
The complete source of structure_hello.ek9, compiled by the EK9 compiler. Shown on structure.html.
#!ek9 defines module site.structure.hello defines constant worldMessage <- "Hello, World" defines program HelloWorld() stdout <- Stdout() stdout.println(worldMessage) HelloMars() stdout <- Stdout() stdout.println("Hello, Mars")
Output
HelloWorld
Hello, World
HelloMars
Hello, Mars