On Jul 8, 2010, at 2:34 PM, Nicolas Oury wrote: > Sorry, that's why I had quote around my parse. > > I meant, use clojure reader to take a sequence in a macro and then "parse" it > for my own DSL. > So I shouldn't need any help from the reader (even if having some metas with > line and character attached to thing would help) > > I do not want to go the parser generator way because I want the DSL to be > tightly integrated with Clojure.
In that case, what about treating the symbols in your given sequence as tokens, and using a Java-based parser generator from your macro to build up a parse tree out of Clojure objects? Maybe overkill, but since you get to skip the tokenization step, it should actually be pretty easy to implement. -- 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