Fork me on GitHub

Hi, what is the best way to edit code with rewrite-clj dynamically? What I mean is that I’ve a source code string (that can change), and sometimes I need to modify it programmatically, like adding a new list or rewrite the content of a specific list. How I can get the position of each list inside the source code? Like index, parent, etc so I can use rewrite-clj to find it using the zipper and modify it? Is there a way to extract a representation of the entire source code?


@eliascotto94 a good place to get the basics is the If you have some more specific questions after that we are here to help!

👍 1