Abstract
Controlled M-grammars, defined formally in Chapter 17, are essentially different from M-grammars without control. The set of well-formed derivation trees is defined at two levels instead of one. The control expressions define a superset of this set of derivation trees, and M-rule applications filter out the ill-formed ones from this superset. The difference is not one of formal power. A controlled M-grammar can be translated into one without control (cf. Chapter 19), and of course free grammars can be changed into controlled ones by adding a sterile control expression: a regular expression that generates the set of M-rules. Rather, the difference is one of grammar organisation. Control expressions function as the backbone of the grammar, and in some sense form an easy-to-grasp grammar summary. This makes the existence of control important for the design, development and maintenance of the grammar.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 1994 Springer Science+Business Media Dordrecht
About this chapter
Cite this chapter
Rosetta, M.T. (1994). An attribute grammar view. In: Compositional Translation. The Springer International Series in Engineering and Computer Science, vol 273. Springer, Dordrecht. https://doi.org/10.1007/978-94-015-8306-0_18
Download citation
DOI: https://doi.org/10.1007/978-94-015-8306-0_18
Publisher Name: Springer, Dordrecht
Print ISBN: 978-90-481-5797-6
Online ISBN: 978-94-015-8306-0
eBook Packages: Springer Book Archive