Back to table

Variables and continuation Lines

The following is a valid µOCCAM program. Tests for variable declarations and valid continuation lines

Program file: /public/cs3/web/ipptests/varsncons.accept
-- checks continuation lines and variable declarations

INT f:
INT u:
INT n:

SEQ
  f := 6
  u := 21
  n :=
    14      -- this is continuation

  INT add = f +
  u:                  -- as is this

  INT together = u + n:
  STOP