Converting sequences into function parameters

2009-09-28 Thread Paul Henning
s] `(~f ~...@as)) But then I can't figure out how to get ~@ to apply to the value of "as" or how to quote the individual elements of the spliced unquote. Any help would be appreciated. Thanks, Paul Henning --~--~-~--~~~---~--~~ You received this mess

Example of using ANTLR from Clojure?

2009-09-03 Thread Paul Henning
Does anyone have an example of how to call ANTLR from Clojure? I imagine that it is not that difficult using the Java interop features, but my Java skills are pathetic. Thanks, Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: newbie: namespaces and load-file

2009-01-22 Thread Paul Henning
> At some point in this process, Clojure needs to know which foo you're   > talking about. It can't retrieve the var associated with foo without   > knowing which namespace it's in. That determination can either be   > explicit or it can be made via the current namespace (*ns*), but it   > has to

newbie: namespaces and load-file

2009-01-22 Thread Paul Henning
Suppose I have a clojure file called "app.clj" that contains something like: (ns app) (defn foo [] (println "hello")) (defn reader [filename] (load-file filename)) and a file called "data" that simply contains (foo) What I would like to see, from the REPL, is: user=> (load-file "app.clj") use