1986
DOI: 10.1002/spe.4380160703
|View full text |Cite
|
Sign up to set email alerts
|

Automatic generation of useful syntax error messages

Abstract: Many current compilers produce in some situations wrong error messages that mislead the user and harm his confidence in the system. It is demonstrated that a reliable and efficient syntax error handling system may be produced automatically by a compiler generator from the BNF specification of the language, and without any effort by the language implementor. This result is achieved in three ways: Some errors may not be diagnosed without knowledge of the intentions of the programmer. Some compilers employ a sop… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
7
0

Year Published

1989
1989
2023
2023

Publication Types

Select...
5
1

Relationship

0
6

Authors

Journals

citations
Cited by 11 publications
(7 citation statements)
references
References 17 publications
0
7
0
Order By: Relevance
“…Jeffrey created a tool called Merr that overrides the error handler of the LR parser generator of a compiler to automatically provide more useful syntax error messages [9], and Kantorowitz and Laor likewise propose modifications to the parser generator [10]. While these tools apply to text error messages, they illustrate that tools can improve error messages when they can interact with compiler internals.…”
Section: Related Workmentioning
confidence: 99%
“…Jeffrey created a tool called Merr that overrides the error handler of the LR parser generator of a compiler to automatically provide more useful syntax error messages [9], and Kantorowitz and Laor likewise propose modifications to the parser generator [10]. While these tools apply to text error messages, they illustrate that tools can improve error messages when they can interact with compiler internals.…”
Section: Related Workmentioning
confidence: 99%
“…Actually, compiler vendors do receive user complaints on error diagnostics [14]. Low usability in the programming environments may severely affect programmers' productivity [37] and their overall user experience [13]. On the other hand, moving from novice to expert is only a slow gradual process, which can be hindered by the difficulties of error messages (among other reasons).…”
Section: Evidence Of the Problemmentioning
confidence: 99%
“…An error recovery method which can be generated automatically given the grammar of the language is given in [13]. Despite being automatic, their experiments on 600 Pascal programs written by students suggest the method performs satisfactorily in comparison with the best system the authors knew.…”
Section: Evidence Of the Problemmentioning
confidence: 99%
See 2 more Smart Citations