Introduction

Welcome to Algoma By Example.

In this series I will explain and demonstrate the core elements of the Algoma programming language.

This series uses interactive code blocks such as the one below. Each block is freely editable, you can modify the example code using the full language implementation.

For this series I will refer to the language by its short name Ag for brevity.

The Print instruction

The simplest possible Ag program has just a single print instruction.

 
print "Hello, World"
 

The print instruction accepts any possible Value, not just strings of text. The following examples are also valid.

 
print 1
 
print false 
 
print [1,2,3]