Re: library for java code generation

2012-03-23 Thread Alex Shabanov
On Mar 23, 5:44 pm, Herwig Hochleitner wrote: > Take a look athttps://github.com/stathissideris/javamatic hmm, interesting. I also found quite intriguing library - http://code.google.com/p/cl-dcf/ - "a framework for building DSL compilers", though its written in common lisp. -- You received

Re: [beginner] library for java code generation

2012-03-23 Thread Ben Smith-Mannschott
On Fri, Mar 23, 2012 at 14:22, Alex Shabanov wrote: > Hi all, > > Is there any easy-to-use library for generating java code? > I ended up writing simple function that takes strings and characters > and prints them in formatted form (e.g. with tabs and newlines after > braces). > I really like comp

Re: [beginner] library for java code generation

2012-03-23 Thread Herwig Hochleitner
Take a look at https://github.com/stathissideris/javamatic -- 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 firs

Re: [beginner] library for java code generation

2012-03-23 Thread Tassilo Horn
Hi Alex, I've done similar things in the past, also by throwing together plain strings and using `format` as a kind of templating thingy. I don't even think it's a too bad approach. With respect to the side-effects: you can omit all of them (glancing at your code) by giving up the indentation.

[beginner] library for java code generation

2012-03-23 Thread Alex Shabanov
Hi all, Is there any easy-to-use library for generating java code? I ended up writing simple function that takes strings and characters and prints them in formatted form (e.g. with tabs and newlines after braces). I really like compojure approach to build html page - is there any similar libraries