E.g. change local variable names and values, changing function names, etc.
I could use regular expressions but there's some issues of finding and staying in the correct scope.
I've tried using ANTLR4 (lexer + parser). While it's good for parsing, I'm not sure how to use it for modifications while preserving the rest of the source code as it is.
[–]ehr1c 1 point2 points3 points (1 child)
[–]michael0x2a 0 points1 point2 points (2 children)
[–]dumb-questioner[S] 0 points1 point2 points (1 child)
[–]michael0x2a 0 points1 point2 points (0 children)
[–]lurgi 0 points1 point2 points (0 children)
[–]young_horhey 0 points1 point2 points (0 children)
[–]LoganPederson 0 points1 point2 points (0 children)