cemc 0.1.2

Cem language compiler - A concatenative language with green threads and linear types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# hello.cem - Simple test program

# Push the number 42
: fortytwo ( -- Int )
  42 ;

# Add two numbers: 5 + 3 = 8
: eight ( -- Int )
  5 3 + ;

# Multiply: 6 * 7 = 42
: product ( -- Int )
  6 7 * ;