Logo image
A Type-Safe Embedding of XDuce into ML
Journal article

A Type-Safe Embedding of XDuce into ML

Martin Sulzmann, Kenny Zhuo Ming Lu and Zhuoming Kenny Lu
Electronic notes in theoretical computer science, Vol.148(2), pp.239-264
24/03/2006

Abstract

language integration/extension program transformation Semi-structured data handling
We consider the problem of integrating XDuce into ML. This is difficult because of incompatible type and value representations. Our solution is a type-driven translation scheme from XDuce to ML based on a structured representation of XDuce values. XDuce type inference guides the insertion of appropriate coercion functions to translate regular expression pattern matching and uses of semantic subtyping. We can extend our translation scheme to include ML function calls and patterns into XDuce. Thus, we can embed XDuce into ML. Our results allow to enrich the ML language with support for dealing with semi-structured data.
url
https://doi.org/10.1016/j.entcs.2005.11.047View
Published (Version of record) Open

Metrics

1 Record Views

Details

Logo image