Aspect-Oriented Compilers
Oege de Moor6, Simon Peyton-Jones7 and Eric Van Wyk6
| (6) |
Oxford University Computing Laboratory, Oxford |
| (7) |
Microsoft Research, Cambridge |
Abstract
Aspect-oriented programming provides the programmer with means to cross-cut conventional program structures, in particular the class hierarchies of object-oriented programming. This paper studies the
use of aspect orientation in structuring syntax directed compilers implemented as attribute grammars. Specifically, it describes
a method for specifying definitions of related attributes as ‘aspects’ and treating them as first-class objects, that can
be stored, manipulated and combined. It is hoped that this embedding of an aspect-oriented programming style in Haskell provides
a stepping stone towards a more general study of the semantics of aspect-oriented programming.
References secured to subscribers.