@lee I'm stripping down some of your rewrite-cljc code down to the bare essentials of what I need for sci.
What does ^not-native
mean in [#?(:cljs ^not-native reader :default reader)]
?
Hi @borkdude! I decided to carry over all hints from rewrite clj and cljs without fully understanding them all or if they are still relevant/needed. This one is described briefly here: http://rundis.github.io/blog/2015/clojurescript_performance_tuning.html
thanks !
@lee Distilled it down to ~ 140 lines: https://github.com/borkdude/sci/blob/master/src/sci/impl/parser.cljc
Cool! Will put on my todo to have a study!
the difference with rewrite-clj(sc) is that it parses directly into EDN values with line and col as metadata
so in that regard it's much more simplistic
the reason I "needed" this is to throw more informative error message when a user uses an unresolved symbol for example, I can show where in the code that was
when writing bigger scripts, it becomes annoying to have only "x is unresolved" in 100 lines of code