|
If you convert my museum quality interpreter to implement static scope with the 2 or 3 tiny changes that are required, then a test with the program from the head of the assignment should suffice to show that you've got static scope. But I can't imagine producing a LISP interpreter and not wanting to try it on a few other examples. You might as well run all of the examples in my demo file, just for the heck of it. But for your handed in demonstration, just use my example to demonstrate the right scope, and possibly one or two others if you see a potential for error in your particular approach. E.g., since you need to introduce a new sort of form to LISP to represent closures, it's probably a good idea to test a few programs that have closures in the source code. Mike O'D. |
to: