首页> 外文会议>Asian Symposium on Programming Languages and Systems(APLAS 2004); 20041104-06; Taipei(CT) >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 and S-expressions: 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 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.
机译:编写用于处理树状结构数据(例如XML文档和S表达式)的程序有两种方法:一种是编写专注于数据逻辑结构的树处理程序,另一种是编写流处理程序。程序侧重于物理结构。尽管树处理程序比流处理程序更容易编写,但树处理程序将树用作中间数据,因此在内存使用方面效率较低。我们的目标是建立一种自动将树处理程序转换为流处理程序的方法,以充分利用两者的优势。我们定义了一种用于处理二叉树的编程语言和一个基于有序线性类型的类型系统,并表明每个类型良好的程序都可以转换为等效的流处理程序。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号