arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv cs/0701176cs.PL
收藏

宏树变换器的实用类型检查

Towards Practical Typechecking for Macro Tree Transducers

Alain Frisch, Haruo Hosoya

摘要:

宏树转换器(mtt)是一个重要的模型,它既涵盖了许多有用的XML转换,又允许可判定的精确类型检查。这篇论文报告了我们朝着实现具有实际效率的mtt类型检查器迈出的第一步。我们的方法是表示一个输入类型从一个交替的树自动机的反向推理,在类似Tozawa的XSLT0类型检查的风格。在这种方法中,类型检查简化为检查交替树自动机的空性。我们提出了几个优化(笛卡尔因式分解,状态分区)的向后推理过程中,以产生更小的交替树自动机比天真的算法,我们提出了我们的有效算法检查空交替树自动机,我们利用显式表示交替局部优化。我们的初步实验证实,我们的算法有一个实际的性能,可以typecheck简单的转换相对于完整的XHTML在一个合理的时间。

英文摘要:

Macro tree transducers (mtt) are an important model that both covers many useful XML transformations and allows decidable exact typechecking. This paper reports our first step toward an implementation of mtt typechecker that has a practical efficiency. Our approach is to represent an input type obtained from a backward inference as an alternating tree automaton, in a style similar to Tozawa's XSLT0 typechecking. In this approach, typechecking reduces to checking emptiness of an alternating tree automaton. We propose several optimizations (Cartesian factorization, state partitioning) on the backward inference process in order to produce much smaller alternating tree automata than the naive algorithm, and we present our efficient algorithm for checking emptiness of alternating tree automata, where we exploit the explicit representation of alternation for local optimizations. Our preliminary experiments confirm that our algorithm has a practical performance that can typecheck simple transformations with respect to the full XHTML in a reasonable time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑