
Departmental Papers (CIS)
Document Type
Conference Paper
Date of this Version
April 2005
Abstract
XTATIC is a lightweight extension of C# offering native support for statically typed XML processing. XML trees are built-in values in XTATIC, and static analysis of the trees manipulated by programs is part of the ordinary job of the typechecker. "Tree grep" pattern matching is used to investigate and transform XML trees. XTATIC's surface syntax and type system are tightly integrated with those of C#. Beneath the hood, however, an implementation of XTATIC must address a number of issues common to any language supporting a declarative style of XML processing (e.g., XQUERY, XSLT, XDUCE, CDUCE, XACT, XEN, etc.). In particular, it must provide representations for XML tags, trees, and textual data that use memory efficiently, support efficient pattern matching, allow maximal sharing of common substructures, and permit separate compilation. We analyze these representation choices in detail and describe the solutions used by the XTATIC compiler.
Date Posted: 10 September 2005

Comments
Postprint version. Published in Lecture Notes in Computer Science, Volume 3443, Compiler Construction, 2005 (CC 2005), pages 43-58.
Publisher URL: http://dx.doi.org/10.1007/b107108