Attribute grammars fly first-class
Marcos Viera, S. Doaitse Swierstra, Wouter Swierstra · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2009
Attribute Grammars (AGs), a general-purpose formalism for describing recursive computations over data types, avoid the trade-off which arises when building software incrementally: should it be easy to add new data types and data type alternatives or to add new operations on existing data types? However, AGs are usually implemented as a pre-processor, leaving e.g. type checking to later processing phases and making interactive development, proper error reporting and debugging difficult. Embedding AG into Haskell as a combinator library solves these problems.
Cited by 40 works. doi:10.1145/1596550.1596586
Authors
References
- Ordered attributed grammars
- Using circular programs to eliminate multiple traversals of data
- Type Classes with Functional Dependencies
- User-Defined Types and Procedural Data Structures as Complementary Approaches to Data Abstraction
- Dependently typed programming in Agda
- Associated type synonyms
- Typing Haskell in Haskell
- Strongly typed heterogeneous collections
- Remote attribute updating for language-based editors
- Type classes: an exploration of the design space