Back to table

Comment Befouling

The following is INVALID µOCCAM. Does some fairly basic sequential stuff, with a PROC thrown in for good measure. Should fall over on a badly placed comment.

Program file: /public/cs3/web/ipptests-phase-1/horribly-wrong.reject
SEQ
  -- boing

  i.dont.r3ally ? know.what
  i.m ! doing
-- but i suspect this comment may be in a bad place
  PROC wahey (INT booger, CHAN fish)
    SEQ
      booger := monkey.armpit
      -- unlike this one
      which.is.lovely ? fish
  :
  STOP