Article view
MARTINI: The Little Match and Replace Tool for Automatic Code Rewriting
By Alister Johnson, Camille Coti, Allen D. Malony, Johannes Doerfert
Article information
- Publisher
- Free Journal Network
- Publication
- Published 13 August 2022
- Institutions at publication
- of , , , , , , , , ,; Université du Québec à Montréal; University of Oregon; Argonne National Laboratory
- Full text
- Read the article
Countries with citations
No data yet
Usage
Phase 3: not collected yet
Abstract
Rewriting code for cleanliness, API changes, and new programming models is a common, yet time-consuming task. Localized or syntax-based changes are often mechanical and can be automated with text-based tools, like Unix's sed. However, non-localized or semantic-based changes require specialized tools that usually come with complex, hard-coded rules that require expertise in compilers. This means existing techniques for code rewriting are either too simple for complex tasks or too complex to be customized by non-expert users; in either case, developers are often forced to manually update their code instead. This work presents MARTINI, a new approach to code rewriting built on the Clang compiler, which exposes complex and semantic-driven rewrite capabilities to users in a simple and natural way. Rewrite rules are expressed as a pair of parameterized "before-and-after" code snippets in the source language, one to describe what to match and one to describe what the replacement looks like. Through this novel and user-friendly interface, programmers can automate and customize complex code changes which require a deep understanding of the language without any knowledge of compiler internals.
Citations per year
| Year | Citations |
|---|---|
| 2022 | 0 |
| 2023 | 0 |
| 2024 | 0 |
| 2025 | 0 |
| 2026 | 1 |
OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.
Works citing this article
OpenAlex counts 1 citation, but the citing work is not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.
Where its authors are based
Countries of the institutions the article's authors were affiliated to when it was published.
- AUTHORS
- CITATIONS No data yet
- USAGE Phase 3
| Country | Authors |
|---|---|
| United States | 2 |
| Canada | 1 |