Parsing via Regular Expressions

Dávid Magyar, S. Szénási
{"title":"Parsing via Regular Expressions","authors":"Dávid Magyar, S. Szénási","doi":"10.1109/SAMI50585.2021.9378647","DOIUrl":null,"url":null,"abstract":"Since programming languages exist, parsing the code - primarily for compilation - is an ever-present necessity. As of today, there is a deep theory of this topic, describing approaches and useful constructs, categories and capabilities of parsers, which this paper not intends to dive into deeply, but to describe and use the official technical terms where possible. The presented approach of parsing utilizes regular expressions and forms a PEG (Parsing Expression Grammar), which is more expressive than simply regular expressions [1]. This paper aims to present an approach specially for parsing complex input recursively using PEG approach. An easy to configure and understand interpreter based on regular expressions over characters, tokens and schemas is outlined.","PeriodicalId":402414,"journal":{"name":"2021 IEEE 19th World Symposium on Applied Machine Intelligence and Informatics (SAMI)","volume":"34 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-01-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE 19th World Symposium on Applied Machine Intelligence and Informatics (SAMI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SAMI50585.2021.9378647","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Since programming languages exist, parsing the code - primarily for compilation - is an ever-present necessity. As of today, there is a deep theory of this topic, describing approaches and useful constructs, categories and capabilities of parsers, which this paper not intends to dive into deeply, but to describe and use the official technical terms where possible. The presented approach of parsing utilizes regular expressions and forms a PEG (Parsing Expression Grammar), which is more expressive than simply regular expressions [1]. This paper aims to present an approach specially for parsing complex input recursively using PEG approach. An easy to configure and understand interpreter based on regular expressions over characters, tokens and schemas is outlined.
通过正则表达式解析
既然存在编程语言,解析代码(主要是为了编译)就永远是必要的。到目前为止,这个主题有一个深入的理论,描述了解析器的方法和有用的结构、类别和功能,本文不打算深入研究,而是在可能的情况下描述和使用官方技术术语。本文提出的解析方法利用正则表达式并形成一种比简单的正则表达式更具表现力的PEG(解析表达式语法)[1]。本文提出了一种利用聚乙二醇递归解析复杂输入的方法。概述了一个易于配置和理解的基于正则表达式的解释器,该解释器基于字符、令牌和模式。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信