The browser you are using is not supported by this website. All versions of Internet Explorer are no longer supported, either by us or Microsoft (read more here: https://www.microsoft.com/en-us/microsoft-365/windows/end-of-ie-support).

Please use a modern browser to fully experience our website, such as the newest versions of Edge, Chrome, Firefox or Safari etc.

Implementing Java Compilers Using ReRAGs

Author

Summary, in English

Rewritable Reference Attributed Grammars (ReRAGs) is a recently developed compiler-compiler technology based on object-orientation, aspect-orientation, reference attributed grammars, and conditional rewrites. In this paper we describe our experiences from using ReRAGs for implementing Java compilers. We illustrate how the usage of ReRAGs renders a rather compact, yet easy-to-understand and modular compiler specification where code analysis, restructurings, and optimizations can be conveniently described as aspects performing computations and transformations on the abstract syntax tree. Currently, we have implemented two compilers: one that generates C code with real-time support, and one that generates Java bytecode. Both share the same front end.

Publishing year

2004

Language

English

Pages

213-234

Publication/Series

Nordic Journal of Computing

Volume

11

Issue

3

Document type

Journal article

Publisher

Publishing Association Nordic Journal of Computing

Topic

  • Computer Science

Keywords

  • Java
  • compiler construction
  • Object-Orientation

Status

Published

Research group

  • LUCAS

ISBN/ISSN/Other

  • ISSN: 1236-6064