I was going to post this on Friday, but I put it off so I could format it as a blog post. Considering http://arclanguage.org/item?id=14795, it looks like Pauan has beat me to the punch on the topic of JavaScript macros. ^_-
In case you're wondering, Chops doesn't have much to do with Arc. In fact, the example macros I talk about could conceivably be written in Arc too, and I'm sure Pauan will be tempted to rant about how they're perfectly possible in arc2js. ;)
Some differences between my Chops and Pauan's arc2js:
- I'm using JavaScript as the implementation language rather than Arc.
- My source format isn't Arc code or even s-expressions. The macros get to parse their own bodies, very much like Penknife macros.