Back to table

commented keyword

The following is valid µOCCAM. commentSTOP checks that the parser can recognise that the STOP keyword is actually part of the comment and should be ignored.

Program file: /public/cs3/web/ipptests-phase-1/commentSTOP.accept
INT anyold.number :
INT anynew.number :

  anyold.number := anynew.number + 1
  STOP -- STOP .. can your parser recognise that keyword should be a comment?