<br><br><div class="gmail_quote">On Sun, Dec 5, 2010 at 10:47 AM, Jon Rafkind <span dir="ltr"><<a href="mailto:rafkind@cs.utah.edu">rafkind@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff"><div class="im"><br></div>
Attached is a simple macro expander (but not hygienic) that follows
the algorithm laid out in the paper "Macro by Example" by Wand and
others. Its written in python but the code follows the paper
reasonably close so maybe you can understand it. The paper is on the
acm digital library if you can load it (but for some reason its not
loading for me right now, so here is a google search link to it).<br>
<br>
<a href="http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Fportal.acm.org%2Fcitation.cfm%3Fid%3D41632&ei=u9z7TPWCMY76sAO__MD3DQ&usg=AFQjCNGnasAUQsGpiVJik29wZRUwHBnz1w" target="_blank">http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Fportal.acm.org%2Fcitation.cfm%3Fid%3D41632&ei=u9z7TPWCMY76sAO__MD3DQ&usg=AFQjCNGnasAUQsGpiVJik29wZRUwHBnz1w</a><br>
<br></div></blockquote><div><br></div><div>Thanks Jon for the example code and the links to paper. I don't have access to ACM, but the python code looks quite understandable, even though I am not too familiar with Python. I will study the code to see what I can glean from it. </div>
<div><br></div><div>Thanks,</div><div>yc</div><div><br></div></div>