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 (many (digit)) _ (many (char \space) _ (either (char \,) (lookahead (char \))))] (always item))) (defparser arr [] (between (char \() (char \)) (many (array-item)))) But the array-item parser is not working for a simple input like "1)". The question I have is, how do I terminate the array-item parser correctly so that the between parser can take over in the arr parser? -- 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