Title :
Bottom-up evaluation of attribute grammars with two queues
Author :
Naini, Majid Mojtabavi
Author_Institution :
Dept. of Electr. & Comput. Eng., Florida Atlantic Univ., Boca Raton, FL, USA
Abstract :
The author presents a bottom-up evaluator for attribute grammars. Attribute grammars are among the best formalisms to specify the translation and semantics of the programming languages. The evaluator presented accomplishes the attribute evaluation in only one bottom-up pass, using two FIFO queues. The first queue holds the leaf attributes with known values the attribute queue. The reverse dependency graph shows the dependency of the attributes on each other and the other in which they are evaluated. These attributes give their values to their predecessor attributes. A predecessor attribute needs these values in order to be evaluated. The second queue holds the predecessor attributes of the first queue and is called the predecessor queue.<>
Keywords :
context-free grammars; graph theory; queueing theory; FIFO queues; attribute grammars; bottom up evaluation; context free grammar; predecessor queue; programming languages; reverse dependency graph; semantics; translation; Computer languages; Counting circuits; Equations; Performance evaluation; Production systems;
Conference_Titel :
System Theory, 1988., Proceedings of the Twentieth Southeastern Symposium on
Conference_Location :
Charlotte, NC, USA
Print_ISBN :
0-8186-0847-1
DOI :
10.1109/SSST.1988.17125