A compile-time error diagnostic system for an interactive, table-driven compiler
Many student-oriented compilers currently in use were designed to produce good error diagnostics. Most of these, however, are batch-oriented and fall far short of their two secondary goals: (1) to provide the user consistently with an accurate diagnosis of his problem, and (2) to detect all syntax errors in a given input.
The only method of correctly diagnosing a user's error with consistently accurate results is for the error system to interact directly with the user and rely on human feedback to guide it to the "correct" solution of the problem. The compile-time diagnostic system of CAPS (Computer Assisted Programming System) at the University of Illinois has been the only such highly interactive error system designed. Tindall's table-driven, language-independent system examines only the left context of the error, a syntax description of the language, and the parser's configuration to determine possible corrections for the error.
This thesis describes a modified version of Tindall's model and its implementation in the TICK (Table-driven Interactive Compiler from Knoxville) system at the University of Tennessee. By incorporating the right context of the error into the investigation, this work significantly strengthens Tindall's model.
Key words and phrases: table driven compilers, error correction interactive programming.
Thesis77.B879.pdf
2.72 MB
Adobe PDF
d930f7b1a4851547f1e02d31fb183554