rewrite-clj
rewrite-clj copied to clipboard
Rewrite Clojure code and edn
Folks on Slack have agreed that some real-ish world examples would help. I could glean some good stuff from past support questions. For example: > i’m considering using rewrite-clj to...
Raised me in rewrite-cljc-playground, see https://github.com/lread/rewrite-cljc-playground/issues/59 Much thanks to @sogaiu for bringing this up on Slack. Rewrite-clj (and therefore rewrite-cljc) makes use of `assert`, mostly to validate node creation, and...
Not sure if this is a bug or a behavior to document, just recording some notes for now. **Version** Pre-existing in v0 **Platform** All **Behaviour** Let's explore what happens with...
**Problem/Opportunity** While hunting for what macros rewrite-clj exposes, I noticed a couple of unexposed/unused/undocumented/untested ones under the internal `rewrite-clj.node.whitespace` namespace: - `with-newline-fn` - `with-count-fn` They have an associated a couple...
The `regex-node` constructor fn accepts a `string-pattern`. It is called when parsing `#regexa` where `regexa` becomes the `string-pattern`. The `sexpr` returns `(list 're-pattern string-pattern)`. Should it return `(re-pattern string-pattern)` (an...
Just an idea: A extension for [Reveal](https://github.com/vlaaad/reveal) to visualize a zipper as source code with current location highlighted would, I think, be pretty helpful.
Raised by me in rewrite-cljc-playground, see https://github.com/lread/rewrite-cljc-playground/issues/64 **Source** Chat initiated by @sparkofreason (and @sogaiu many moons ago) on [Slack](https://clojurians.slack.com/archives/CHB5Q2XUJ) with participation from @borkdude. **Problem/Opportunity** Rewrite-clj, and therefore rewrite-cljc overrides default...
Originally raised by me as https://github.com/lread/rewrite-cljc-playground/issues/58 Was chatting with @sogaiu about testing against samples from the wild. He is experimenting with using clojars as a source for his projects. Other...
Originally raised by me as https://github.com/lread/rewrite-cljc-playground/issues/24 Originally I thought that rewrite-clj's codox documentation of node.protocols namespace was perhaps an oversight. But maybe it should be documented (and therefore considered public)...
Originally raised by as https://github.com/lread/rewrite-cljc-playground/issues/2 From discussions with @sogaiu and @borkdude on #slack When traversing parsed data, the fact that metadata holds the object it is describing can be awkward....