Proceedings of the 14th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications 1999
DOI: 10.1145/320384.320391
|View full text |Cite
|
Sign up to set email alerts
|

A language for specifying recursive traversals of object structures

Abstract: We present a domain-specific language for specifying recursive traversals of object structures, for use with the visitor pattern. Traversals are traditionally specified as iterations, forcing the programmer to adopt an imperative style, or are hard-coded into the program or visitor. Our proposal allows a number of problems best approached by recursive means to be tackled with the visitor pattern, while retaining the benefits of a separate traversal specification.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
13
0

Year Published

2000
2000
2009
2009

Publication Types

Select...
4
3
2

Relationship

0
9

Authors

Journals

citations
Cited by 19 publications
(13 citation statements)
references
References 2 publications
0
13
0
Order By: Relevance
“…Our programming language meta-weaver borrows from the previous work of adaptive programming with respect to languages for traversal of object structures [9]. In fact, a key adaptive programming principle-structure shyness-is evident in Figure 5 since there is a distinct separation of behavior (strategy specifications) from structure (the underlying model and specification aspects).…”
Section: A Meta-weaver Frameworkmentioning
confidence: 99%
“…Our programming language meta-weaver borrows from the previous work of adaptive programming with respect to languages for traversal of object structures [9]. In fact, a key adaptive programming principle-structure shyness-is evident in Figure 5 since there is a distinct separation of behavior (strategy specifications) from structure (the underlying model and specification aspects).…”
Section: A Meta-weaver Frameworkmentioning
confidence: 99%
“…Gray et al [6] and Ovlinger et al [5] present an approach in which traversal specifications are written in a specialized language separate from the basic computations. A code generator is used to transform the traversal specifications into imperative code based on the Visitor pattern.…”
Section: Related Workmentioning
confidence: 99%
“…To overcome the pitfalls of the Visitor pattern, domain-specific languages (DSL) that are specialized for the traversals of object structures have been proposed [5,6]. These DSLs separate traversals from the type-specific computations using external representations of traversal rules and use a separate code generator to transform these rules into a conventional imperative language program.…”
Section: Introductionmentioning
confidence: 99%
“…The basic computations per constructor can be passed as arguments to the fold combinator. An object-oriented approach to disentangled traversal is described in [16] (inspired by AP concepts). There, OOP is enriched with a domain-specific language for specifying reusable traversals of object structures.…”
Section: Disentangled Traversalmentioning
confidence: 99%