Re: [ANN] Edneditor.com

2016-06-24 Thread 'Adrian A.' via Clojure
> > Very rudimentary at this point - so a lot of TODOs. But have a look, let > me know your thoughts. Hopefully it can help you out. > > Seeing the name of the project, my first thought was: maybe finally a web based component/editor like https://github.com/josdejong/jsoneditor but for EDN :).

Clojure for the Brave and True - infix notation exercise

2016-06-24 Thread Botond Balázs
Hi, I'm working through Clojure for the Brave and True and there's a little exercise at the end of Chapter 7 : Create an infix function that takes a list like (1 + 3 * 4 - 5) and > transforms it into the lists that Clojure needs in order to correctly

Re: Clojure for the Brave and True - infix notation exercise

2016-06-24 Thread Jason Felice
Recursive descent parsers are much smaller for simple cases. Basically, you write one function per level of precedence, and each tries, greedily, to consume as much as possible for that level of precedence. e.g. (defn parse-level1 ;; + and - [list] ... ; calls parse-level2 repeatedly so long

Re: Clojure for the Brave and True - infix notation exercise

2016-06-24 Thread Steve Miner
Not exactly the same problem, but you might like to see an infix implementation from “The Joy of Clojure” by Fogus and Chouser. http://fogus.me/fun/unfix/infix-src.html The “Joy” code makes intermediate calculations as it goes. I tweaked it a bit to make a data-reader that only does the infix