Macro Processing in Object-Oriented Languages

  • Authors:
  • Shigeru Chiba

  • Affiliations:
  • -

  • Venue:
  • TOOLS '98 Proceedings of the Technology of Object-Oriented Languages and Systems
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

There are a number of programmable macro systems such as Lisp's. While they can handle complex program transformation, they still have difficulty in handling some kinds of transformation typical in object-oriented programming. This paper examines this problem and, to address it, presents an advanced macro system based on ideas borrowed from reflection. Unlike other macro systems, our macro system provides metaobjects as the data structure used for the macro processing instead of an abstract syntax tree. This feature makes it easy to implement a range of transformations of object-oriented programs.