Implemented cgen for assign, switch(case), if-then-else, loops and
dispatch expressions.