Back to table

Two Variables... and some comments.

The following is a valid µOCCAM program. Tests variable declaration and assignment, but also has comment tests.

Program file: /public/cs3/web/ipptests/two-variables.accept
-- initial indentation test just thrown in.
INT varone :
INT vartwo :
SEQ 
  varone := 4
  vartwo := 5
  varone := vartwo
  vartwo := varone
  -- might as well have a final indentation test as well.