Affiliation:
1. Institute for Defense Analysis, Princeton, NJ
Abstract
During the past few years, research into so-called “Syntax Directed Compiler” and “Compiler Compiler” techniques [1, 2, 3, 4, 5, 6] has given hope that constructing computer programs for translating formal languages may not be as formidable a task as it once was. However, the glow of the researchers' glee has obscured to a certain extent some very perplexing problems in constructing practical translators for common programming languages. The automatic parsing algorithms indeed simplify compiler construction but contribute little to the production of “optimized” machine code, for example. An equally perplexing problem for many of these parsing algorithms has been what to do about syntactically incorrect object strings. It is common knowledge that most of the ALGOL or FORTRAN “programs” which a compiler sees are syntactically incorrect. All of the parsing algorithms detect the existence of such errors. Many have considerable difficulty pinpointing the location of the error, printing out diagnostic information, and recovering enough to move on to other correct parts of the object string. It is the author's opinion that those algorithms which do the best job of error recovery are those which are restricted to simpler forms of formal languages.
Publisher
Association for Computing Machinery (ACM)
Reference8 articles.
1. A syntax directed compiler for ALGOL 60
2. IRONS E. T. A syntax directed compiler for ALGOL 60.
To be published. ---- Towards more versatile mechanical translators. To be published.
Cited by
41 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Validating static warnings via testing code fragments;Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis;2021-07-11
2. The intractability of computing the Hamming distance;Theoretical Computer Science;2005-06
3. The Intractability of Computing the Hamming Distance;Algorithms and Computation;2003
4. Integrated correction of ill-formed sentences;Advanced Topics in Artificial Intelligence;1997
5. Error repair in shift-reduce parsers;ACM Transactions on Programming Languages and Systems;1995-07