首页> 外文会议>International Conference on Compiler Construction >Compilation of Generic Regular Path Expressions Using C++ Class Templates
【24h】

Compilation of Generic Regular Path Expressions Using C++ Class Templates

机译:使用C ++类模板汇编通用常规路径表达式

获取原文

摘要

Various techniques for the navigation and matching of data structures using path expressions have been the subject of extensive investigations. No matter whether such techniques are based on type information, indexing, automata, it is desirable to synthesize implementations automatically, starting from a high-level description of the path expressions to be traversed. In this paper we present a library of C++ templates for the representation of regular path expressions and their compilation into efficient backtracking algorithms. The resulting code can be used to implement visitors, pattern matchers, node collectors on regular paths over possibly heterogeneous, linked data structures. The point of the paper is on the path compilation technique, which was inspired by a continuation-passing, functional semantics of the path expressions. We rely on some peculiar aspects of C++ templates to create a compilation framework that closely follows the given semantics.
机译:使用路径表达式的导航和匹配数据结构的各种技术已经是广泛调查的主题。无论这些技术是否基于类型信息,索引,自动机,所希望自动合成实现,从要遍历的路径表达式的高级描述开始。在本文中,我们介绍了一个C ++模板库,用于将常规路径表达式的表示及其编译为高效的回溯算法。生成的代码可用于实现访问者,模式匹配器,节点收集器在可能异构链接的数据结构上常规路径上的节点收集器。纸张的点是在路径编译技术上,这是由路径表达式的延续传递,功能语义的启发。我们依靠C ++模板的一些特殊方面来创建一个紧密遵循给定语义的编译框架。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号