首页> 外文会议>Practical aspects of declarative languages >Explicitly Recursive Grammar Combinators A Better Model for Shallow Parser DSLs
【24h】

Explicitly Recursive Grammar Combinators A Better Model for Shallow Parser DSLs

机译:显式递归语法组合器浅解析器DSL的更好模型

获取原文
获取原文并翻译 | 示例

摘要

We propose a novel context-free grammar representation for parsing libraries in a pure programming language. Our representation explicitizes the recursion in the grammar, thus avoiding fundamental limitations of the grammar model currently employed by parser combi-nator libraries. Additionally, we decouple the grammar from its semantic actions using techniques from the Multirec generic programming library. The look and feel of the grammar and semantic actions remain close to traditional EBNF and syntax-directed definitions respectively. In an accompanying technical report, we demonstrate that our representation supports more declarative implementations of grammar transformations than other work. The ideas described in this paper form the basis for our freely available grammar-combinators parsing library1.
机译:我们提出了一种新颖的无上下文语法表示形式,用于以纯编程语言解析库。我们的表示法明确了语法中的递归,因此避免了解析器组合器库当前使用的语法模型的基本限制。此外,我们使用Multirec通用编程库中的技术将语法与其语义动作分离。语法和语义动作的外观分别接近传统的EBNF和语法导向的定义。在随附的技术报告中,我们证明了我们的表示形式比其他工作更支持声明性的语法转换实现。本文描述的思想构成了我们免费提供的语法组合器解析库1的基础。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号