reporting better error locations when parsing scripts.