You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Clojure and ClojureScript library that parses code and optionally applies parinfer(ish) to it. It works pretty much like parinfer and implements the three modes (indent, paren, and smart) but I'm not necessarily trying to make it behave the exact same way.
Acts as a general purpose clojure parser, because its parse function returns the code a hiccup-style data structure, not merely a string. In fact, adjusting parens/indentation is just an optional step.
Doesn't ever change code when only the cursor position changes (and only smart mode requires the cursor position at all)
Has no basis in math, logic, or sanity...the only basis for any behavior is my own preferences and bugs.
See html-soup for an example of a library that uses parinferish as a parser.
Licensing
All files that originate from this project are dedicated to the public domain. I would love pull requests, and will assume that they are also dedicated to the public domain.
About
A library for parsing Clojure and optionally applying parinfer(ish)