VSE knjižnice (vzajemna bibliografsko-kataložna baza podatkov COBIB.SI)
  • A two-dimensional separation of concerns for compiler construction
    Wu, Xiaoqing ...
    During language evolution, compiler construction is usually performed along two dimensions: defining new abstract syntax tree (AST) classes, or adding new operations. In order to facilitate such ... changes, two software design patterns (i.e., the inheritance pattem and the visitor pattern) are widely used to help modularize the language constructs. However, as each design pattem is only suitable for one dimension of extension, neither of these two pattems can independently fulfill the evolution needs during the compiler construction process. In this paper, we analyze two dimensions of concerns in compiler construction and develop a paradigm allowing compiler evolution across these two dimensions using both object-orientation and aspect-orientation. Moreover, this approach provides an ability to per form pattern transformation based on pluggable aspects. A simple implementation of an expression language and its possible extension is demonstrated using Java and AspectJ.
    Vrsta gradiva - prispevek na konferenci
    Leto - 2005
    Jezik - angleški
    COBISS.SI-ID - 9445142