Hello, all! Here's a new library which works with specter, which will hopefully be useful for writing code transformations and queries.
specter-edn Specter paths for working with formatted EDN and Cloure code. There is one specter path: SEXPR. This navigates to a sequence of s-expressions parsed from a string. For the transform case, specter-edn preserves whitespace and comments using a sort of diffing algorithm to match new S-expression parts to original parts of the parse tree. <https://github.com/maitria/specter-edn#usage>Usage (use 'com.rpl.specter) (use 'com.rpl.specter.macros) (use 'com.maitria.specter-edn) (select [SEXPR FIRST LAST] "[42 26 77]");=> 77 (setval [SEXPR FIRST FIRST] 99 "[42 ; Hi mom!\n6]");=> "[99 ; Hi mom!\n6]" <https://github.com/maitria/specter-edn#todo>TODO - Use clj-format to format new code which isn't matched up with old code. <https://github.com/maitria/specter-edn#license>License Copyright © 2016 FIXME Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.