Difference between revisions of "Attributes"

From eplmediawiki
Jump to: navigation, search
Line 10: Line 10:
'''See also:''' [http://eplmediawiki.di.uminho.pt/index.php/Inherited_attributes Inherited attributes], [http://eplmediawiki.di.uminho.pt/index.php/Sinthesized_attributes Sinthesized attributes]
'''See also:''' [http://eplmediawiki.di.uminho.pt/index.php/Inherited_attributes Inherited attributes], [http://eplmediawiki.di.uminho.pt/index.php/Synthesized_attributes Synthesized attributes]
[[Category:Basic Concepts]]
[[Category:Basic Concepts]]

Revision as of 19:21, 15 December 2012

"Attribute: quality, sign or mark which is charatetristic of something or somebody."

in An English-Reader's Dictionary, Oxford University Press

In general, a set of attributes is used to characterize a family of objects (a class); for a given object (a class instance), each "attribute" has a specific "value" that is said to be an object "property".

In the context of formal language definition, attributes are associated to grammar symbols (non-terminal, or terminal symbols) to specify the language semantics. For a particular sentence in that language, the values of the set of attributes associated with the grammar axiom (or root symbol) define its specific meaning. An attribute should be defined for each data item that should be known about each symbol, after the lexical and syntactical analysis of a sentence in order to do the static semantic analysis and its translation or processing.

See also: Inherited attributes, Synthesized attributes

Personal tools