Hello World in Cyan!

The starting point of all languages, a Hello World program can be achieved just by creating a prototype Program with a method that prints the salutation.

package main object Program func run { “Hello world” println } end


The package main (as any package) is a collection of prototypes and interfaces that can be used in the source file that imports it. In every source file with extension .cyan, only one prototype or interface declaration should exist (Program, in the example).