CS 402 compiler design homework. Translates the given language to TAC