Solution to Concordia University's COMP442 (Compiler Design) Assignment 1