Combining Parsing and Evaluation for Attributed Grammars
| dc.contributor.author | Rowland, Bruce R. | en_US |
| dc.date.accessioned | 2012-03-15T16:27:50Z | |
| dc.date.available | 2012-03-15T16:27:50Z | |
| dc.date.created | 1977 | en_US |
| dc.date.issued | 1977 | |
| dc.description.abstract | Attributed grammars, developed by Knuth, permit the formal specification of context-sensitive syntax and semantics within the framework of context-free grammars. This thesis explores techniques to combine parsing with attributed grammar evaluation. The methods of Lewis, Rosenkrantz, and Stearns for evaluating the attributes of symbols during a parse of a string are expanded to include both S- and L-attributed grammars as special cases. An extension that involves the temporary retention of subtrees and delays their evaluation during a parse allows evaluation of all non-circular attributed grammars with LR(k) context-free grammars. An attributed pushdown processor using left-corner parsing techniques is described to perform efficient translations specified by attributed grammars. It serves as a model for single-pass compilation that formalizes and generalizes the use of a semantic stack to encompass forward references. The applicability of the processor in a practical translator writing system is considered, and the salient table construction and run-time properties are established. | en_US |
| dc.format.mimetype | application/pdf | en_US |
| dc.identifier.citation | TR308 | |
| dc.identifier.uri | http://digital.library.wisc.edu/1793/58058 | |
| dc.publisher | University of Wisconsin-Madison Department of Computer Sciences | en_US |
| dc.title | Combining Parsing and Evaluation for Attributed Grammars | en_US |
| dc.type | Technical Report | en_US |
Files
Original bundle
1 - 1 of 1