Hello,

I'm not sure the proper terminology -- reading might be wrong.

The idea is I'd like to mimic behavior in most Clojure development 
environments where given a buffer and a position you can find related 
expressions.  e.g. previous expression, enclosing expression, etc. 
 Preferably the result maintains the structure of the buffer (newlines, 
comments, etc).

Questions:

- Whats the proper term for this?  reader?

- Any tips on accomplishing this?  Are regular expressions the way to go 
(and if so any references for inspiration :)?

- Are there libraries that already do this that can run from ClojureScript?

I'm assuming for an editor application you'd want to start evaluation at 
the cursor position to avoid reading the entire file (which could be huge 
and unbalanced).  This would seem to mean you'd need to read forward / 
backward too.  Maybe you actually do read the whole thing?

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.

Reply via email to