TY - JOUR
T1 - A classification of noncircular attribute grammars based on the look-ahead behavior
AU - Yang, Wuu
PY - 2002/3
Y1 - 2002/3
N2 - We propose a family of static evaluators for subclasses of the well-defined (i.e., noncircular) attribute grammars. These evaluators augment the evaluator for the absolutely noncircular attribute grammars with look-ahead behaviors. Because this family covers exactly the set of all well-defined attribute grammars, well-defined attribute grammars may be classified into a hierarchy called the NC hierarchy, according to their evaluators in the family. The location of a noncircular attribute grammar in the NC hierarchy is an intrinsic property of the grammar. The NC hierarchy confirms a result of Riis and Skyum, which says that all well-defined attribute grammars allow a (static) pure multivisit evaluator by actually constructing such an evaluator. We also show that, for any finite m, an NC(m) attribute grammar can be transformed to an equivalent NC(0) grammar.
AB - We propose a family of static evaluators for subclasses of the well-defined (i.e., noncircular) attribute grammars. These evaluators augment the evaluator for the absolutely noncircular attribute grammars with look-ahead behaviors. Because this family covers exactly the set of all well-defined attribute grammars, well-defined attribute grammars may be classified into a hierarchy called the NC hierarchy, according to their evaluators in the family. The location of a noncircular attribute grammar in the NC hierarchy is an intrinsic property of the grammar. The NC hierarchy confirms a result of Riis and Skyum, which says that all well-defined attribute grammars allow a (static) pure multivisit evaluator by actually constructing such an evaluator. We also show that, for any finite m, an NC(m) attribute grammar can be transformed to an equivalent NC(0) grammar.
KW - Attribute grammars
KW - Grammar classification
KW - Noncircular attribute grammars
KW - Ordered attribute grammars
KW - Pure multivisit attribute grammars
KW - Simple multivisit attribute grammars
KW - Well-defined attribute grammars
UR - http://www.scopus.com/inward/record.url?scp=0036505009&partnerID=8YFLogxK
U2 - 10.1109/32.991318
DO - 10.1109/32.991318
M3 - Article
AN - SCOPUS:0036505009
SN - 0098-5589
VL - 28
SP - 210
EP - 227
JO - IEEE Transactions on Software Engineering
JF - IEEE Transactions on Software Engineering
IS - 3
ER -