add invalid syntax exception
add exception for ast hander