I designed a indentation-based syntax for my toy language and used it to generate JavaScript. It's named Cirru.
You can find more about that at: http://cirru.org/ http://repo.cirru.org/parser/ Comparing to JavaScript, I really love Clojure better. Or I may mean ClojureScript. As I started writing Clojure, I tried to do the same job on Clojure and did a little experiments. Now I can compile https://github.com/Cirru/sepal.clj/blob/master/examples/demo.cirru into https://github.com/Cirru/sepal.clj/blob/master/compiled/demo.clj I did think about using AST or Source code as the intermediate representation before I used macros. It appears to me there's quite some difficulties doing such things. Did anyone do simaliar things before(source to source transformation)? I maybe need some help. Thanks. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.