This is the archived website of SI 413 from the Fall 2013 semester. Feel free to browse around; you may also find more recent offerings at my teaching page.
Here is a program written in Python. Draw its AST.
x = 10 while x > 0: print(x) x = x - 3 print("done")
Write a program in the language of your choosing that would generate the following AST:
(Be sure to specify which language you have chosen!)
Write a simple program using Java syntax that would behave differently under lexical or dynamic scoping rules. (I know that Java uses lexical scope, but you should be able to imagine the alternative as well.)
Specify what would happen under lexical and under dynamic scoping.
You can work together as always, but everyone should submit a unique example.