Update parser to scan semantic & syntax diagnostics