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

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

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