Assignment 3 Syntax and Semantic Analysis Solution