The adequacy of attribute grammars as a compiler writing tool is studied on the basis of the experiences on attribute grammars for Pascal and a subset of Euclid. A qualitative assessment of the grammars shows that the compiler oriented view in the design of an attribute grammar tends to make the grammar hard to understand. A design discipline is proposed to improve the comprehensibility of the grammar. Quantitative measurements of the automatically generated compilers suggest that an efficient compiler can be produced from an attribute grammar. To achieve this, a carefully optimized implementation of the compiler-compiler is required.
CITATION STYLE
Koskimies, K., Räihä, K. J., & Sarjakoski, M. (1982). Compiler construction using attribute grammars. In Proceedings of the 1982 SIGPLAN Symposium on Compiler Construction, SIGPLAN 1982 (pp. 153–159). Association for Computing Machinery, Inc. https://doi.org/10.1145/800230.806991
Mendeley helps you to discover research relevant for your work.