Back to table

continuation lines

The following is invalid µOCCAM. Tests how the program deals with continuation lines, particularly when a continuation line contains a comment or blank line (both invalid).

Program file: /public/cs3/web/ipptests-phase-1/cont_lines.reject
-- test code

  x ? n
  c ? t
       -- this should be ok (level of indentation ok of comments)
x:= 4+
-- this is not ok (comments not allowed on continuation line)
Y:= 6*

6     --the above line is not allowed - blank continuation line