出典:Wikipedia
出典:『Wikipedia』 (2011/05/21 21:05 UTC 版)
An attribute grammar is a formal way to define attributes for the productions of a formal grammar, associating these attributes to values. The evaluation occurs in the nodes of the abstract syntax tree, when the language is processed by some parser or compiler.