Added error log to console on semantic analysis of grammar