throw a 'Syntax error' if unable to produce an AST