2010
DOI: 10.1017/s0956796810000183
|View full text |Cite
|
Sign up to set email alerts
|

A lightweight approach to datatype-generic rewriting

Abstract: Previous implementations of generic rewriting libraries have a number of limitations: they require the user to either adapt the datatype on which rewriting is applied, or the rewriting rules are specified as functions, which makes it hard or impossible to document, test, and analyse them. We describe a library that demonstrates how to overcome these limitations by defining rules in terms of datatypes, and show how to use a type-indexed datatype to automatically extend a datatype for syntax trees with a case fo… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
22
0

Year Published

2010
2010
2016
2016

Publication Types

Select...
4
3
1

Relationship

5
3

Authors

Journals

citations
Cited by 16 publications
(22 citation statements)
references
References 24 publications
0
22
0
Order By: Relevance
“…The regular library of Van Noort et al (2008) considers functors defining single datatypes without parameters. This corresponds to instantiating the input index to ⊥ + (no parameters, one recursive slot) and the output index to , and allowing fixed points only on the outside, of type ⊥ + → ⊥ .…”
Section: Summary and Discussionmentioning
confidence: 99%
See 1 more Smart Citation
“…The regular library of Van Noort et al (2008) considers functors defining single datatypes without parameters. This corresponds to instantiating the input index to ⊥ + (no parameters, one recursive slot) and the output index to , and allowing fixed points only on the outside, of type ⊥ + → ⊥ .…”
Section: Summary and Discussionmentioning
confidence: 99%
“…In fact, many earlier approaches such as regular (van Noort et al 2008), PolyP (Jansson and Jeuring 1997), and Multirec (Rodriguez Yakushev et al 2009) can be readily derived from our approach by parameter instantiation. Unlike Chapman et al (2010), however, we do not strive to devise a minimal, self-encoding universe, but instead prefer a representation which maps naturally to the usual way of defining a datatype.…”
Section: Introductionmentioning
confidence: 94%
“…In this paper we use a lightweight generic programming library using type-level representations with type families in a style similar to that first described by Chakravarty et al (2009) and used by Van Noort et al (2010) which we call instant-generics (the same name as its Hackage package).…”
Section: Generic Programming With Type Familiesmentioning
confidence: 99%
“…The results are promising, and are expected to be used in mathematics courses in Dutch high schools next year. Further investigation is needed to understand how views can be incorporated in our generalized rewriting framework, in which we use generic programming techniques [12]. More information about our tools can be found on http:// ideas.cs.uu.nl/.…”
Section: Related Workmentioning
confidence: 99%