Back to table

Declaration and comment

The following is Valid µOCCAM. This code contains a declaration followed by a comment and should be accepted by the parser.

Program file: /public/cs3/web/ipptests-phase-1/declarandcommt.accept
INT index = 0:
SEQ
  index := index + 1 -- update the variable index.
  STOP