Techniques for the construction of small and fast lexical analyzers

J. Linn
{"title":"Techniques for the construction of small and fast lexical analyzers","authors":"J. Linn","doi":"10.1145/503643.503702","DOIUrl":null,"url":null,"abstract":"The paper discusses two major issues in the construction of table-driven lexical analyzers. It first examines an encoding of FSM state actions which allows the system to be truly table-driven with little or no program modification required to change the FSM being modeled. This encoding makes use of the knowledge that these actions are typically drawn from a reasonably small set. The second issue involves the storage of the \"next-state\" or transition table used by almost all general purpose scanning systems. A fortuitous encoding of FSM states can result in large savings in space with little cost in time. These techniques can be combined with the standard automata-theoretic approach to yield efficient analyzers.Previous results have shown that the speed of compilation is heavily influenced by the speed of the lexical analyzer. Therefore, these techniques could be used to improve the speed of new or already existing compilers.","PeriodicalId":166583,"journal":{"name":"Proceedings of the 16th annual Southeast regional conference","volume":"87 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1978-04-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 16th annual Southeast regional conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/503643.503702","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The paper discusses two major issues in the construction of table-driven lexical analyzers. It first examines an encoding of FSM state actions which allows the system to be truly table-driven with little or no program modification required to change the FSM being modeled. This encoding makes use of the knowledge that these actions are typically drawn from a reasonably small set. The second issue involves the storage of the "next-state" or transition table used by almost all general purpose scanning systems. A fortuitous encoding of FSM states can result in large savings in space with little cost in time. These techniques can be combined with the standard automata-theoretic approach to yield efficient analyzers.Previous results have shown that the speed of compilation is heavily influenced by the speed of the lexical analyzer. Therefore, these techniques could be used to improve the speed of new or already existing compilers.
构建小型快速词法分析器的技术
本文讨论了表驱动词法分析器构建中的两个主要问题。它首先检查了FSM状态动作的编码,这种编码允许系统真正是表驱动的,很少或根本不需要修改程序来更改正在建模的FSM。这种编码利用了这些操作通常是从一个相当小的集合中提取的知识。第二个问题涉及几乎所有通用扫描系统使用的“下一状态”或过渡表的存储。偶然对FSM状态进行编码可以节省大量的空间,而花费很少的时间。这些技术可以与标准的自动机理论方法相结合,以产生高效的分析仪。先前的结果表明,编译速度在很大程度上受到词法分析器速度的影响。因此,这些技术可以用来提高新的或已经存在的编译器的速度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信