关于扩展语法的使用

ACM-SE 20 Pub Date : 1982-04-01 DOI:10.1145/503896.503939
T. J. Sager
{"title":"关于扩展语法的使用","authors":"T. J. Sager","doi":"10.1145/503896.503939","DOIUrl":null,"url":null,"abstract":"Extended context free grammars (ECFG) are context free grammars (CFG) in which the right side or each production may be an arbitrary finite state machine. There are ECFG subsets, ELR(k) and ELALR(k) which correspond to the context free subsets, LR(k) and LALR(k).Although ECFGs recognize the same set of languages as CFGs, ECFGs have some important advantages over CFGs. They tend to be smaller and more readable, containing fewer productions and non-terminals than their context free counterparts. In addition, they allow for a degree of separation of syntax and semantics which is probably impossible to obtain with CFGs.This paper briefly describes ELR parsing and then discusses PEG, a ELALR(1) parser generator currently under development at University of Alabama in Birmingham.","PeriodicalId":184493,"journal":{"name":"ACM-SE 20","volume":"87 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1982-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"On the use of extended grammars\",\"authors\":\"T. J. Sager\",\"doi\":\"10.1145/503896.503939\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Extended context free grammars (ECFG) are context free grammars (CFG) in which the right side or each production may be an arbitrary finite state machine. There are ECFG subsets, ELR(k) and ELALR(k) which correspond to the context free subsets, LR(k) and LALR(k).Although ECFGs recognize the same set of languages as CFGs, ECFGs have some important advantages over CFGs. They tend to be smaller and more readable, containing fewer productions and non-terminals than their context free counterparts. In addition, they allow for a degree of separation of syntax and semantics which is probably impossible to obtain with CFGs.This paper briefly describes ELR parsing and then discusses PEG, a ELALR(1) parser generator currently under development at University of Alabama in Birmingham.\",\"PeriodicalId\":184493,\"journal\":{\"name\":\"ACM-SE 20\",\"volume\":\"87 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1982-04-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM-SE 20\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/503896.503939\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 20","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/503896.503939","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

扩展上下文无关语法(ECFG)是上下文无关语法(CFG),其中右侧或每个产品可以是任意有限状态机。有ECFG子集ELR(k)和ELALR(k),它们对应于上下文无关子集LR(k)和LALR(k)。尽管ecfg和cfg识别的是同一组语言,但ecfg比cfg有一些重要的优势。它们往往更小,可读性更强,比与上下文无关的同类包含更少的结果和非终结符。此外,它们允许一定程度的语法和语义分离,这可能是cfg无法实现的。本文简要介绍了ELR解析,然后讨论了位于伯明翰的阿拉巴马大学正在开发的ELR(1)解析器生成器PEG。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
On the use of extended grammars
Extended context free grammars (ECFG) are context free grammars (CFG) in which the right side or each production may be an arbitrary finite state machine. There are ECFG subsets, ELR(k) and ELALR(k) which correspond to the context free subsets, LR(k) and LALR(k).Although ECFGs recognize the same set of languages as CFGs, ECFGs have some important advantages over CFGs. They tend to be smaller and more readable, containing fewer productions and non-terminals than their context free counterparts. In addition, they allow for a degree of separation of syntax and semantics which is probably impossible to obtain with CFGs.This paper briefly describes ELR parsing and then discusses PEG, a ELALR(1) parser generator currently under development at University of Alabama in Birmingham.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信