Re: replacing specific symbols in arbitrary expressions

2013-01-14 Thread Jim - FooBar();
wow! this looks very useful... thanks Alan - knowledgeable as always! :-) Jim On 14/01/13 19:41, Alan Malloy wrote: (clojure.tools.macro/symbol-macrolet [P +, M -, T *] ...) The tools.macro code-walker is much smarter and more careful than any that you or I will ever write. On Monday, Jan

Re: replacing specific symbols in arbitrary expressions

2013-01-14 Thread Alan Malloy
(clojure.tools.macro/symbol-macrolet [P +, M -, T *] ...) The tools.macro code-walker is much smarter and more careful than any that you or I will ever write. On Monday, January 14, 2013 3:31:40 AM UTC-8, Jim foo.bar wrote: > > Hi everyone, I hope you're all well! > > I recently faced a probl

replacing specific symbols in arbitrary expressions

2013-01-14 Thread Jim foo.bar
Hi everyone, I hope you're all well! I recently faced a problem when i needed to receive some piece of code and replace all the invalid symbols in it with the proper (existent) ones. Imagine for example you have the following map from made-up characters to real characters: (def reserved-char