Code Examples

Learn by example - from simple to complex

Hello World

The simplest program - print a greeting

print 'Hello, World!'

name is 'Layman'

greeting is 'Hello, ' plus name

print greeting

Variables and Types

Declare variables with type inference and explicit types

# Type inference
name is 'Alice'
age is 25
is_active is true

# Explicit types
count of type Number is 10
message of type String is 'Hello'

# Multi-word variable names
user name is 'Bob'
total count is 100

Basic Arithmetic

Perform arithmetic operations using natural language

x is 10
y is 5

sum is x plus y
difference is x minus y
product is x times y
quotient is x divided by y
remainder is x modulo y

print sum
print difference
print product
print quotient
print remainder