Group error conditions in parser