time due | submission file |
---|---|
10:25 PM Wednesday 21 September, 2005 | csci/431/HW4/BoolTests.atg |
This time we're going to add assignment statements to the language of Homework 3 and then you're going to write an attribute grammar for the language. Here's an example of some input for our language. Take note of the blank line after the assignment statement.
A := 1
B := 0
(A B) == ~(~A + B)
A B == ~~A
A == A + A B
1 == A + 1
Your assignment is to modify the attribute grammar specification found in a ZIP'ed starter file for this assignment. You should modify BoolTests.atg so that its output resembles the file Test.out when run on input Test.dat of the ZIP'ed file.
Copy BoolTests.atg to the assignment drop-off directory.