Attribute Grammars: Difference between revisions

From Wiki**3

No edit summary
(Redirected page to ist:Attribute Grammars)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
Topics: attributes in grammar symbols; syntax-directed evaluation.
#REDIRECT [[ist:Attribute Grammars]]
 
Synthesized attributes: passed from child nodes to parent nodes.
 
Inherited attributes: may be passed from parent- to child nodes or between siblings.
 
S-attributed grammars: only synthesized attributes.
 
L-attributed grammars: inherited attributes are only dependent on the parents' attributes or on the older brothers' (i.e., when evaluating left-to-right, only previously seen attributes are needed).

Latest revision as of 23:19, 5 December 2018