Back to table

Checks for indentation in continuation Lines

The following is valid µOCCAM. The program has continuation lines split at various levels of indentation, it should be accepted by the comiler.

Program file: /public/cs3/web/ipptests/indent-continuation-check.accept
-- program to test indentation in various cases
-- including continuations
SEQ
  channel ! (5 * 2)
  SEQ loop = 5 FOR 10
    VAL hello IS (3 +
                      4)
    SKIP
  VAL goodbye IS 5 *
                      2
  SKIP
  STOP