14 ms·
Sounds like you know the language-specific AST tooling for your stack well, but if you are looking for AST patching that uses a generic approach across many lan
by ievans 5y ago
Sounds like you know the language-specific AST tooling for your stack well, but if you are looking for AST patching that uses a generic approach across many languages, I'm a maintainer for a project named Semgrep (https://en.wikipedia.org/wiki/Semgrep#History https://en.wikipedia.org/wiki/Semgrep#History) which was created by one of the original coccinelle authors.
It supports many more languages (~17 at various stages of development) and being able to do AST patching as in the original is one of the capabilities we're experimenting with: https://semgrep.dev/docs/experiments/overview/#autofix https://semgrep.dev/docs/experiments/overview/#autofix
Would love your feedback!