Back to table

Mismatched Bracket

The following is an invalid µOCCAM program. Round brackets must match up, but there is an extra one at the end of the line 4.

Program file: /public/cs3/web/ipptests/mismatched_bracket.reject
-- simple uOccam invalid program, testing mismatched parenthesis
INT z = 0; -- initialise and declare variable
SEQ
  z := (z + 3) * z) -- unmatched bracket