programs that should work: _this program tests the lexer_ begin: int count ; count = 0 ; while ( count != 10 ) do print "counting" ; print count ; count = count + 1 ; if ( count == 2 ) then print "hello world" ; endif ; endwhile ; end. begin: int a; a = 1; int b; b = 2; if(a == 1) then a = a + 1; endif; b = 3; end. begin: int a; a = 1; int b; b = 2; if(a != 2) then a = a + 1; endif; b = 3; end. begin: int a; a = 1; int b; b = 2; while(a != 3) do a = a + 1; endwhile; b = 3; end. begin: int a; a = 1; int b; b = 2; while(a == 1) do a = a + 1; endwhile; b = 3; end. Programs that will fail: begin: int a; a = a + b; a = a + "a"; string a; end. begin: while (1 == "a") do int a; if ("a" == a) then string a; a = 1; endif; endwhile; end.