RASCAL: A Domain Specific Language for Source Code Analysis and Manipulation

Paul Klint, Tijs van der Storm, Jurgen Vinju

2009 · 299 citations · 14 references

DOIFull text

Open access

Concepts

TL;DR

Automated software engineering tools need tight integration of source code analysis and manipulation, but state‑of‑the‑art tools remain separate due to differing computational paradigms, creating an impedance mismatch that hampers scalable solution development. RASCAL aims to eliminate boilerplate by integrating source code analysis and manipulation across conceptual, syntactic, semantic, and technical levels. RASCAL achieves this by providing a domain‑specific language that unifies analysis and manipulation across conceptual, syntactic, semantic, and technical layers. The authors demonstrate RASCAL’s merits by implementing a complex refactoring, showing its practical effectiveness.

Abstract

Many automated software engineering tools require tight integration of techniques for source code analysis and manipulation. State-of-the-art tools exist for both, but the domains have remained notoriously separate because different computational paradigms fit each domain best. This impedance mismatch hampers the development of new solutions because the desired functionality and scalability can only be achieved by repeated and ad hoc integration of different techniques. RASCAL is a domain-specific language that takes away most of this boilerplate by integrating source code analysis and manipulation at the conceptual, syntactic, semantic and technical level. We give an overview of the language and assess its merits by implementing a complex refactoring.

References

14