This chapter introduces attributed grammars as a concise notation for describing translation processes. Attributed grammars are context-free grammars augmented with attributes and semantic action. This notation will then be used in the subsequent chapters of the book. The chapter includes examples of how to use attributed grammars for processing syntactically structured input. It also shows how they can be used in areas outside of proper compiler construction.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Attributed Grammars

  • Hanspeter Mössenböck

摘要

This chapter introduces attributed grammars as a concise notation for describing translation processes. Attributed grammars are context-free grammars augmented with attributes and semantic action. This notation will then be used in the subsequent chapters of the book. The chapter includes examples of how to use attributed grammars for processing syntactically structured input. It also shows how they can be used in areas outside of proper compiler construction.