On the construction of LR(k) analyzers

ACM '71 Pub Date : 1900-01-01 DOI:10.1145/800184.810522
Tatsuya Hayashi
{"title":"On the construction of LR(k) analyzers","authors":"Tatsuya Hayashi","doi":"10.1145/800184.810522","DOIUrl":null,"url":null,"abstract":"A method for constructing almost optimal Floyd-Evans type Productions for LR(k) grammars is described here. Knuth has given the algorithm for constructing the analyzer. But its parsing table is too large and unacceptable for practical use. The concept of route indexes is used in our method. Using the concept it is possible to transform the transition diagram of Knuth's analyzer into another equivalent one whose number of statuses is much less than that of Knuth's transition diagram. As the result, we can get Productions which are optimal concerning both the time and the space efficiency, at the cost of the constructor complexity.","PeriodicalId":126192,"journal":{"name":"ACM '71","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM '71","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/800184.810522","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

A method for constructing almost optimal Floyd-Evans type Productions for LR(k) grammars is described here. Knuth has given the algorithm for constructing the analyzer. But its parsing table is too large and unacceptable for practical use. The concept of route indexes is used in our method. Using the concept it is possible to transform the transition diagram of Knuth's analyzer into another equivalent one whose number of statuses is much less than that of Knuth's transition diagram. As the result, we can get Productions which are optimal concerning both the time and the space efficiency, at the cost of the constructor complexity.
LR(k)分析仪的构造
本文描述了一种为LR(k)语法构造几乎最优的Floyd-Evans型产品的方法。Knuth给出了构造分析器的算法。但是它的解析表太大,不适合实际使用。我们的方法中使用了路由索引的概念。使用这个概念,可以将Knuth分析器的转换图转换为另一个等效的转换图,其状态数量远少于Knuth的转换图。因此,我们可以在牺牲构造函数复杂度的前提下,得到时间和空间效率都最优的构造函数。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信