Back to table

Simple Expression

The following is a valid µOCCAM program. A small program that takes three values and adds them.

Program file: /public/cs3/web/ipptests/dsxw.accept
--This program makes three assignments and then adds them

INT first :
INT second :
INT third :

SEQ

  PAR
    first := 1 
    second := 2
    third := 3

  SEQ
    first := first + (second + third)