parser error report adapter. need a unified framework for error report. do it later.