Bottom-up evaluation of attribute grammars with two queues

M. Naini
{"title":"Bottom-up evaluation of attribute grammars with two queues","authors":"M. Naini","doi":"10.1109/SSST.1988.17125","DOIUrl":null,"url":null,"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.<<ETX>>","PeriodicalId":345412,"journal":{"name":"[1988] Proceedings. The Twentieth Southeastern Symposium on System Theory","volume":"8 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1988-03-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"[1988] Proceedings. The Twentieth Southeastern Symposium on System Theory","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SSST.1988.17125","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

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.<>
使用两个队列对属性语法进行自下而上的求值
作者提出了一个自底向上的属性语法求值器。属性语法是指定编程语言的翻译和语义的最佳形式之一。所提供的求值器使用两个FIFO队列,仅在一次自下而上的传递中完成属性求值。第一个队列保存具有已知值的叶子属性(属性队列)。反向依赖关系图显示了属性之间的依赖关系,以及它们被评估时的依赖关系。这些属性将它们的值赋给它们的前身属性。前身属性需要这些值才能求值。第二个队列持有第一个队列的前导队列属性,称为前导队列。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信