Back to table

Simple indentation test

The following is a valid µOCCAM program. Tests to make sure simple indentation works with the compiler Includes a tab online 9

Program file: /public/cs3/web/ipptests/simple_indent.accept
-- Tests to see if indentation works with SEQ and PAR's
INT a = 50 :
SEQ
  SEQ
    SEQ
      SEQ
        SEQ
          a := 10
	PAR -- tab indentation
          a := 10
        SEQ       
      SEQ
    SEQ
  SEQ