feature: add support for Coccinelle-like semantic patches mixing matching (TemplateMatcher) and transformation (Template) together
Open
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
Assessment
This issue has not been assessed yet.