The most powerful abstraction in computer science is that of a computer program writing or analyzing another computer program. Today we will talk about macros and show a few of the ways they can be used.

The links below have the HTML of the gorilla worksheets. If you’d like to run them, use the macros.tgz file. Use the following commands:

tar xzf ~/Downloads/macros.tgz
cd macros
lein gorilla

It will download a bunch of stuff then tell you a URL to use. Navigate to that URL with your web browser and then load worsheet.cljw or worksheet-done.cljw depending on whether you want to see the answers we did in class or not. Use ctlr-g ctrl-g or alt-g alt-g to bring up the keyboard shortcuts for loading a worksheet.

Activities

Worksheets