Changed parser errors to SyntaxError