-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing source code by using an unified diff format #149
Comments
Hi @elfring! I take it you're familiar with spatch [1, 2], so something like that? This is possible; there are a couple of things to think about compared to, say, // some context
- foo(:[1])
+ foo(:[1])
more context The other part to consider is the separation of the rule language, and how that would be syntactically delineated or supported. Perhaps initially this just wouldn't be supported. Overall, as a basic or experimental feature, this should be quite easy to support. I can think of some good reasons why having a |
You can see from published development activities that I am working also with the semantic patch language (Coccinelle software) for a few years.
I suggest to take another look at variants for further possible change specifications.
|
Well, good to meet you :)
Makes sense to me. So, there are a couple of things that are roughly described in the roadmap document that I'd like to prioritize. I'm happy to add the diff specification as a feature request, and it does not seem too difficult. It might be a while until I can get to work on it though. You are of course very welcome to hack on and contribute something like this. Sound good if I put this on the ROADMAP and I'll get to it once I have some more time? |
I am struggling with software development challenges also together with the programming language “OCaml". |
Your software expects the use of rewrite templates for source code transformations so far.
Would you like to support the expression of possible changes by the means of unified diff files where plus and minus characters can be used at the beginning of lines for marking desired modifications?
The text was updated successfully, but these errors were encountered: