Regular expression types for XML

Author:

Hosoya Haruo1,Vouillon Jérôme2,Pierce Benjamin C.3

Affiliation:

1. The University of Tokyo, Tokyo, Japan

2. CNRS and Denis Diderot University, Paris Cedex, France

3. University of Pennsylvania, Philadelphia, PA

Abstract

We propose regular expression types as a foundation for statically typed XML processing languages. Regular expression types, like most schema languages for XML, introduce regular expression notations such as repetition (*), alternation (|), etc., to describe XML documents. The novelty of our type system is a semantic presentation of subtyping, as inclusion between the sets of documents denoted by two types. We give several examples illustrating the usefulness of this form of subtyping in XML processing.The decision problem for the subtype relation reduces to the inclusion problem between tree automata, which is known to be EXPTIME-complete. To avoid this high complexity in typical cases, we develop a practical algorithm that, unlike classical algorithms based on determinization of tree automata, checks the inclusion relation by a top-down traversal of the original type expressions. The main advantage of this algorithm is that it can exploit the property that type expressions being compared often share portions of their representations. Our algorithm is a variant of Aiken and Murphy's set-inclusion constraint solver, to which are added several new implementation techniques, correctness proofs, and preliminary performance measurements on some small programs in the domain of typed XML processing.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference40 articles.

1. Subtyping recursive types

2. Coinductive axiomatization of recursive type equality and subtyping;Brandt M.;Fund. Inf.,1998

3. Bray T. Paoli J. Sperberg-McQueen C. M. and Maler E. 2000. Extensible markup language (XML#8482;). http://www.w3.org/XML/.]] Bray T. Paoli J. Sperberg-McQueen C. M. and Maler E. 2000. Extensible markup language (XML#8482;). http://www.w3.org/XML/.]]

4. Derivatives of Regular Expressions

Cited by 84 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Face Index of Silicon Carbide Structures: An Alternative Approach;Silicon;2024-08-29

2. Stream Types;Proceedings of the ACM on Programming Languages;2024-06-20

3. POSIX Lexing with Derivatives of Regular Expressions;Journal of Automated Reasoning;2023-07-08

4. Towards a Generalised Semistructured Data Model and Query Language;ACM SIGWEB Newsletter;2023-07

5. MLstruct: principal type inference in a Boolean algebra of structural types;Proceedings of the ACM on Programming Languages;2022-10-31

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3