tutorial

Hello World in Cyan!

The starting point of all languages, a Hello World program can be achieved just by importing the main package and creating an object Program – which also is a prototype, and its name should start with an uppercase letter – with a function that prints it.

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

The package main (and all packages) 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 iterface declaration should exist (Program, in the example).