Clone wiki

inf225public / glossary / Attribute grammar

[Alphabetical Index | Tag Index]

Attribute grammar

A grammar where each production rule has attached attributes that are evaluated whenever the production rule is used in parsing. Can be used, for example, to build an intermediate representation directly from the parser, or to do typechecking while parsing.