Help using parsatron to parse a list

2012-04-13 Thread rahulpilani
Hi, I am trying to use the parsatron library (https://github.com/youngnh/parsatron) to parse a simple list of digits. I am not able to get it to parse correctly, I was wondering what I was missing. What I have so far: (defparser array-item [] (let- [_ (many (char \space)) item

Prefix tree creation in clojure

2012-01-01 Thread rahulpilani
I am relatively new to clojure and still trying to learn my way around. In my day job, my primary language is Java, so breaking the imperative and mutable habit was kind of tough for me. To get my feet wet, I wrote a small set of functions to implement a prefix tree. It's larger than something I