Reusable Language Specification Modules in JastAdd II

Torbjörn Ekman, Görel Hedin · Lund University Publications (Lund University) · 2004

This paper discusses how to build domain specific languages (DSL) on top of a general purpose language using our language implementation tool JastAdd II. The specification formalist in JastAdd II is based on ReRAGs (Rewritable Reference Attributed Grammars) that combine object-oriented abstract grammars, static aspect-oriented programming, reference attributed grammars, and conditional rewriting. The technique is illustrated by evolving a matrix framework into new language constructs that are added on top of Java. The extension is done in a modular way and re-uses large part of the static semantic analysis from the base grammar.

Read the paper · More papers on PaperTik