Back to table

Indent checks

The following is valid µOCCAM. This program demonstrates the ability to handle some moderately tricky indent situations with comments and continuation statements. It also uses standard indenting features on basic processes.

Program file: /public/cs3/web/ipptests-phase-1/indent-checks.accept
INT a:
INT b:
-- one
-- two
-- three
SEQ
  a := ((3 + 4) - 
    5) +
  4
  PAR
      -- four
    a := 6
    b := a
  SEQ a = 1 FOR 4
    b := 6