Back to search

Monterey, California. Naval Postgraduate School

An approach to automating syntax error detection recovery, and correction for LR(k) grammars.

Abstract

dc:description.abstract

An automatic, language-independent syntax error detection, recovery, and correction system for LR(k) grammars is proposed. The requirement is made that the reverse of the grammar involved is also LR(k). The implications and justification for this requirement are discussed. Given that the grammar is both LR(k) and RL(k), forward and reverse parsers localize errors and define left and right error context providing a strong base from which error analysis may proceed. Possible deterministic and heuristic corrective actions to follow error analysis are presented. The definition and selection of keys from the set of terminal symbols for the grammar which enable the reverse parser to be engaged upon error detection are discussed. A model of the proposed system, implemented in an XPL compiler for a large ALGOL-like grammar, is described and the results of test programs are exampled and discussed. Possible extensions to the system are presented and areas requiring further analysis are defined.

Degree

thesis:*
Name thesis:degree_name
M.S. in Computer Science
Level thesis:degree_level
Masters
Discipline thesis:degree_discipline
Computer Science
Department dc:contributor.department
Mathematics
Grantor dc:publisher
Monterey, California. Naval Postgraduate School
Year dc:date.issued
1972

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • McGruther, Gordon T.
Advisor dc:contributor.advisor
  • Bolles, Robert C.

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • This publication is a work of the U.S. Government as defined in Title 17, United States Code, Section 101. Copyright protection is not available for this work in the United States.
  • Approved for public release; distribution is unlimited.

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10945/16001

Chain of custody

source
Harvested from
Naval Postgraduate School
Base URL
calhoun.nps.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

McGruther, Gordon T.. An approach to automating syntax error detection recovery, and correction for LR(k) grammars.. Masters thesis, Monterey, California. Naval Postgraduate School, 1972. https://hdl.handle.net/10945/16001