Programming errors in traversal programs over structured data

Thompson, Simon J. and Laemmel, Ralf and Kaiser, Markus (2013) Programming errors in traversal programs over structured data. Science of Computer Programming . ISSN 0167-6423. (In press) (Full text available)

PDF - Accepted Version
Download (596kB) Preview
[img]
Preview
Official URL
http://dx.doi.org/10.1016/j.scico.2011.11.006

Abstract

Traversal strategies à la Stratego (also à la Strafunski and ‘Scrap Your Boilerplate’) provide an exceptionally versatile and uniform means of querying and transforming deeply nested and heterogeneously structured data including terms in functional programming and rewriting, objects in OO programming, and XML documents in XML programming. However, the resulting traversal programs are prone to programming errors. We are specifically concerned with errors that go beyond conservative type errors; examples we examine include divergent traversals, prematurely terminated traversals, and traversals with dead code. Based on an inventory of possible programming errors we explore options of static typing and static analysis so that some categories of errors can be avoided. This exploration generates suggestions for improvements to strategy libraries as well as their underlying programming languages. Haskell is used for illustrations and specifications with sufficient explanations to make the presentation comprehensible to the non-specialist. The overall ideas are language-agnostic and they are summarized accordingly.

Item Type: Article
Uncontrolled keywords: Traversal strategies; Traversal programming; Term rewriting; Stratego; Strafunski; Generic programming; Scrap your boilerplate; Type systems; Static program analysis; Functional programming; XSLT; Haskell
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Divisions: Faculties > Science Technology and Medical Studies > School of Computing > Programming Languages and Systems Group
Depositing User: Simon Thompson
Date Deposited: 10 Oct 2012 19:40
Last Modified: 12 Feb 2013 11:15
Resource URI: http://kar.kent.ac.uk/id/eprint/31505 (The current URI for this page, for reference purposes)
  • Depositors only (login required):

Downloads

Downloads per month over past year