Sample programming task

Change/extend the compiler of the While language as follows:

if x < 10 then
   a := 0;
elsif x = 0 then
   a := 1;
else
   a := 2;
end