INRIA / INRIA/spoon

feature: add support for Coccinelle-like semantic patches mixing matching (TemplateMatcher) and transformation (Template) together

Open
#1,918 7 comments 2 reactions 0 assignees View on GitHub
feature mastersthesis roadmap
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

Imagine that you want to match a code location and transform it at the same time, this is sometimes called a "semantic patch" (as opposed to a line-based patch).

In the C world, there is an excellent tool for this, called Coccinelle, see http://coccinelle.lip6.fr/.

In Spoon, it would mean creating an abstraction that would gather a `TemplateMatcher` and `Template` in a same object. In other terms, we are really close to have "semantic patches" in Spoon.

@pvojtechovsky since you're extensively working on this part, what do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.