University of Warwick
  • Study
  • |
  • Research
  • |
  • Business
  • |
  • Alumni
  • |
  • News
  • Sign in
  • Computer Science Repository
  • More…

    Computer Science Repository

    • Home
    • About
    • Browse by Year
    • Browse by Subject
    • Browse by Division
    • Browse by Author
      • Login

    Minimum Distance Error Recovery for LR Parsers

    Dain, J.A. (1992) Minimum Distance Error Recovery for LR Parsers. Technical Report. Department of Computer Science, Coventry, UK.

    [img] PDF
    Download (220Kb)

      Abstract

      We present a method for recovering from syntax errors encountered during parsing. The method provides a form of minimum distance repair, has linear time complexity, and is completely automatic. It is incorporated into the LR parser-generator yacc in such a way that the compiler writer can generate a parser with recovery without providing any additional information to yacc |Error messages phrased in terms of source input are generated automatically. We present a formal method for evaluating the performance of error recovery methods, based on global minimum-distance error correction, and show that the error recovery method presented achieves a theoretically best performance on 80 percent of Pascal programs in the Ripley-Druseikis collection.

      Item Type: Monograph (Technical Report)
      Uncontrolled Keywords: technicalreport
      Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
      Divisions: Faculty of Science > Computer Science
      Depositing User: Mr Ebrahim Ardeshir
      Date Deposited: 24 Apr 2012 14:02
      Last Modified: 01 Nov 2012 18:06
      URI: http://eprints.dcs.warwick.ac.uk/id/eprint/1329

      Actions (login required)

      View Item
      Close this email form
      Page contact: Repository administrator Last revised: Wed 21 Mar 2012
      • Sign in
      • | Powered by EPrints 3