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)
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篇论文的施引文献,订阅后可以查看论文全部施引文献