Added rudimentary reporting of parse errors.