really nice .. I used to wonder why nobody had already written something like this for clojure.. after I found out that scheme had all this.. Will definitely check it out.. :) Sunil.
On Mon, Jan 3, 2011 at 1:27 AM, Brian Goslinga <quickbasicg...@gmail.com>wrote: > I have released version 1.0.0-alpha1 of my syntax-rules library: > http://clojars.org/org.clojars.qbg/syntax-rules. This library is also > on Github: https://github.com/qbg/syntax-rules > > This library seeks to address two sources of incidental complexity > when writing macros in Clojure using defmacro: parsing the macro form > and checking for syntax errors. The library provides powerful tools > for parsing macros with complex syntax (see the wiki for an example of > parsing deftype). In addition, this library will generate reasonable > syntax error messages almost for free. > > The wiki for this library is located at > https://github.com/qbg/syntax-rules/wiki. > On the wiki are some simple examples comparing the implementation of > simple macros from Clojure using defmacro and defsyntax-rules. An > implementation of defn is provided using defsyntax-rules. As mentioned > above, there is also an example of parsing deftype using defsyntax- > rules. > > I hope people find this library useful. > > Brian > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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