Added base for undeclared identifier and expression checking