One tool, many languages: Language-parametric transformation with incremental parametric syntax

12Citations
Citations of this article
17Readers
Mendeley users who have this article in their library.

Abstract

We present a new approach for building source-to-source transformations that can run on multiple programming languages, based on a new way of representing programs called incremental parametric syntax. We implement this approach in Haskell in our Cubix system, and construct incremental parametric syntaxes for C, Java, JavaScript, Lua, and Python. We demonstrate a whole-program refactoring tool that runs on all of them, along with three smaller transformations that each run on several. Our evaluation shows that (1) once a transformation is written, little work is required to configure it for a new language (2) transformations built this way output readable code which preserve the structure of the original, according to participants in our human study, and (3) our transformations can still handle language corner-cases, as validated on compiler test suites.

Cite

CITATION STYLE

APA

Koppel, J., Premtoon, V., & Solar-Lezama, A. (2018). One tool, many languages: Language-parametric transformation with incremental parametric syntax. Proceedings of the ACM on Programming Languages, 2(OOPSLA). https://doi.org/10.1145/3276492

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free