goclj
goclj copied to clipboard
Clojure parsing in Go
Some common tasks: - Checking whether a node is a symbol (or keyword, etc) and if it is, pulling out Val - Walking through the whole tree recursively It would...
Prefer this canonical form: ```clojure (:import (com.google.protobuf CodedInputStream CodedOutputStream)) ``` over this repetitive: ```clojure (:import (com.google.protobuf CodedInputStream) (com.google.protobuf CodedOutputStream)) ``` Also sort class names within it, i. e. change ```clojure...
Indent overrides do not apply to the source file where the function is defined since it is not a case listed under [indent overrides](https://github.com/cespare/goclj/blob/master/README.md#indent-overrides). To fix it, a fourth bullet...
In my recent PR https://github.com/liftoffio/liftoff/pull/12386 I added more than a 100 functions to the indent-overrides. All of them could've been specified with a single regexp expression. See the corresponding PR...
It's common that traversal code has to iterate through n.Roots in the same way that the recursive function iterates through n.Children().
For example ``` clojure @ ; surprisingly, ; this is a valid deref. x ``` This happens with derefs, quotes, unquotes, unquote splices, syntax quotes, metadata, and the 'ignore next...