Combining Parsing and Evaluation for Attributed Grammars

dc.contributor.authorRowland, Bruce R.en_US
dc.date.accessioned2012-03-15T16:27:50Z
dc.date.available2012-03-15T16:27:50Z
dc.date.created1977en_US
dc.date.issued1977
dc.description.abstractAttributed 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.mimetypeapplication/pdfen_US
dc.identifier.citationTR308
dc.identifier.urihttp://digital.library.wisc.edu/1793/58058
dc.publisherUniversity of Wisconsin-Madison Department of Computer Sciencesen_US
dc.titleCombining Parsing and Evaluation for Attributed Grammarsen_US
dc.typeTechnical Reporten_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR308.pdf
Size:
9.88 MB
Format:
Adobe Portable Document Format