Re: Dynamically building and evaluating s-expressions from Java

2009-10-12 Thread John Harrop
On Mon, Oct 12, 2009 at 6:55 PM, Garth Sheldon-Coulson wrote: > Yes, but for present purposes I'm stuck in Java proper. > > I'll try using Clojure's compile to build a Java class with a method that > builds an s-expression based on its arguments and evals it. If this works it > will be simpler th

Re: Dynamically building and evaluating s-expressions from Java

2009-10-12 Thread Garth Sheldon-Coulson
Yes, but for present purposes I'm stuck in Java proper. I'll try using Clojure's compile to build a Java class with a method that builds an s-expression based on its arguments and evals it. If this works it will be simpler than constructing clojure.lang.* objects and Compile.eval()ing them. On Mo

Re: Dynamically building and evaluating s-expressions from Java

2009-10-12 Thread John Harrop
On Mon, Oct 12, 2009 at 5:10 PM, Garth Sheldon-Coulson < garth.sheldoncoul...@gmail.com> wrote: > Rich wrote somewhere that he wanted to make it possible for Java > applications to build Clojure s-expressions dynamically and pass them to an > embedded Clojure compiler/evaluator. > > I'm not talkin

Re: Dynamically building and evaluating s-expressions from Java

2009-10-12 Thread Garth Sheldon-Coulson
Scratch this until further notice. I've found http://groups.google.com/group/clojure/browse_thread/thread/81383e59e65d54c/809aaad743aed9ff?q=embedded+group:clojure+rt#809aaad743aed9ff http://groups.google.com/group/clojure/browse_thread/thread/d98cedb860f16a34/be7d6789964ec9c4?q=embedded+group:cl

Dynamically building and evaluating s-expressions from Java

2009-10-12 Thread Garth Sheldon-Coulson
Rich wrote somewhere that he wanted to make it possible for Java applications to build Clojure s-expressions dynamically and pass them to an embedded Clojure compiler/evaluator. I'm not talking about evaluating strings of Clojure-syntax text. I'm talking about building up the actual s-expressions