Meny

Du är här

JastAdd - an aspect-oriented compiler construction system

Författare:
Publiceringsår: 2003
Språk: Engelska
Sidor: 37-58
Publikation/Tidskrift/Serie: Science of Computer Programming
Volym: 47
Nummer: 1
Dokumenttyp: Artikel
Förlag: Elsevier Science B.V.

Sammanfattning

We describe JastAdd, a Java-based system for compiler construction. JastAdd is centered around an object-oriented representation of the abstract syntax tree where reference variables can be used to link together different parts of the tree. JastAdd supports the combination of declarative techniques (using Reference Attributed Grammars) and imperative techniques (using ordinary Java code) in implementing the compiler. The behavior can be modularized into different aspects, e.g. name analysis, type checking, code generation, etc., that are woven together into classes using aspect-oriented programming techniques, providing a safer and more powerful alternative to the Visitor pattern. The JastAdd system is independent of the underlying parsing technology and supports any noncircular dependencies between computations, thereby allowing general multi-pass compilation. The attribute evaluator (optimal recursive evaluation) is implemented very conveniently using Java classes, interfaces, and virtual methods. (C) 2002 Elsevier Science B.V. All rights reserved.

Disputation

Nyckelord

  • Technology and Engineering
  • visitor pattern
  • Java
  • aspect-oriented programming
  • construction
  • reference attributed grammars
  • compiler

Övriga

Published
Yes
  • LUCAS
  • ISSN: 0167-6423

Box 117, 221 00 LUND
Telefon 046-222 00 00 (växel)
Telefax 046-222 47 20
lu [at] lu [dot] se

Fakturaadress: Box 188, 221 00 LUND
Organisationsnummer: 202100-3211
Om webbplatsen