A symbol-based extension of parsing expression grammars and context-sensitive packrat parsing

解析 扩展(谓词逻辑) 计算机科学 符号(正式) 基于规则的机器翻译 背景(考古学) 解析表达式语法 S-属性语法 人工智能 上下文无关语法 语音识别 L-属性语法 自然语言处理 程序设计语言 生物 古生物学
作者
Kimio Kuramitsu
标识
DOI:10.1145/3136014.3136025
摘要

Parsing expression grammars (PEGs) are a powerful and popular foundation for describing syntax. Despite PEGs' expressiveness, they cannot recognize many syntax patterns of popular programming languages. Typical examples include typedef-defined names in C/C++ and here documents appearing in many scripting languages. We use a single unified state representation, called a symbol table, to capture various context-sensitive patterns. Over the symbol table, we design a small set of restricted semantic predicates and actions. The extended PEGs are called SPEGs, and are designed to be safe in contexts of backtracking and the linear time guarantee of packrat parsing. This paper will show that SPEGs have improved the expressive power in such ways that they recognize practical context-sensitive grammars, including back referencing, indentation-based code layout, and contextual keywords.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
英姑应助平淡的苡采纳,获得10
刚刚
刚刚
刚刚
情怀应助lululiya采纳,获得10
2秒前
搜集达人应助逗逗采纳,获得10
2秒前
tony1102发布了新的文献求助10
3秒前
tony1102发布了新的文献求助10
3秒前
tony1102发布了新的文献求助10
3秒前
tony1102发布了新的文献求助10
3秒前
科研通AI6.4应助xieyue采纳,获得10
3秒前
tony1102发布了新的文献求助10
3秒前
tony1102发布了新的文献求助10
3秒前
tony1102发布了新的文献求助10
3秒前
3秒前
渡人舟应助十一采纳,获得10
4秒前
青橘短衫发布了新的文献求助10
4秒前
Twyla发布了新的文献求助10
4秒前
zhe发布了新的文献求助10
4秒前
LL发布了新的文献求助10
4秒前
温童发布了新的文献求助10
5秒前
田様应助小麒麒采纳,获得10
6秒前
水123发布了新的文献求助10
7秒前
Master发布了新的文献求助10
7秒前
vicky完成签到,获得积分10
7秒前
7秒前
学术文献互助应助翎_采纳,获得200
8秒前
8秒前
歪比巴卜发布了新的文献求助10
11秒前
12秒前
Roy发布了新的文献求助30
13秒前
彭于晏应助AM采纳,获得10
13秒前
13秒前
吱吱吱吱在完成签到,获得积分20
13秒前
Lucas应助无心的背包采纳,获得10
13秒前
13秒前
CodeCraft应助风清扬采纳,获得20
14秒前
YingFengLi发布了新的文献求助30
14秒前
14秒前
杨艺完成签到,获得积分10
15秒前
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The anomeric effect 1314
Principles of town planning: translating concepts to applications 1000
Navigating Normative Orders. Interdisciplinary Perspectives 800
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
Organizational Behavior 510
Management and the Arts 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7736275
求助须知:如何正确求助?哪些是违规求助? 9286195
关于积分的说明 20176450
捐赠科研通 7314442
什么是DOI,文献DOI怎么找? 3305313
关于科研通互助平台的介绍 2457655
邀请新用户注册赠送积分活动 2314742