...
首页> 外文期刊>Journal of Functional Programming >Translation of tree-processing programs into stream-processing programs based on ordered linear type
【24h】

Translation of tree-processing programs into stream-processing programs based on ordered linear type

机译:根据有序线性类型将树处理程序转换为流处理程序

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

摘要

There are two ways to write a program for manipulating tree-structured data such as XML documents: One is to write a tree-processing program focusing on the logical structure of the data and the other is to write a stream-processing program focusing on the physical structure. While tree-processing programs are easier to write than stream-processing programs, tree-processing programs are less efficient in memory usage since they use trees as intermediate data. Our aim is to establish a method for automatically translating a tree-processing program to a stream-processing one in order to take the best of both worlds. We first define a programming language for processing binary trees and a type system based on ordered linear type, and show that every well-typed program can be translated to an equivalent stream-processing program. We then extend the language and the type system to deal with XML documents. We have implemented an XML stream processor generator based on our algorithm, and obtained promising experimental results.
机译:有两种编写用于处理树状结构数据(例如XML文档)的程序的方法:一种是编写侧重于数据逻辑结构的树处理程序,另一种是编写侧重于数据结构的流处理程序。物理结构。尽管树处理程序比流处理程序更容易编写,但树处理程序将树用作中间数据,因此在内存使用方面效率较低。我们的目标是建立一种自动将树处理程序转换为流处理程序的方法,以充分利用两者的优势。我们首先定义一种用于处理二叉树的编程语言和一个基于有序线性类型的类型系统,并说明每个类型良好的程序都可以转换为等效的流处理程序。然后,我们扩展语言和类型系统以处理XML文档。我们已经基于我们的算法实现了XML流处理器生成器,并获得了有希望的实验结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号