Here's my how-to question for someone with in-depth knowledge of the 
clojure/clojurescript compiler:

If I have a string representing a valid Clojure form, say for example, "(+ 
1 (* 2 (/ 6 3)))", how would I "reduce" this form to the form with one 
s-expr evaluated? That is, how would I obtain "(+ 1 (* 2 2))"? And then 
from there, how would I obtain "(+ 1 4)", and then "5"?

I read through David Nolen's brief intro to the cljs 
compiler: https://github.com/swannodette/hello-cljsc  and suspect the 
answer lies in ASTs. I'm just not sure where to start.

Forgive me if I should be posting this somewhere else, just not sure where 
else I can find an answer.

-- 
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.

Reply via email to