-
Page31, Figure11, there are two links between AST to Modifies and
AST to Uses. Do students need to describe them in the answer?
Answer : Yes. And they can add/modify ADTs/associations in the diagram.
The diagram is just a guide, and it is not complete.
-
CFG problem: There should be no link between N6 to N7 in Assignment 1. similarly for (15,16,17) to (18,19).
Because the end of the while can only linked back to the while statement.
-
How to do the assignment statement parsing?
Answer: You need to use stacks to store all the terms first, and then build up the AST by popuping from the stack.
Please read your CS1102 text book for details.
-
Can I use the Table to store the Query instand of Query Tree?
Answer: Table is a possible way to do it. But be aware of the flexibility of the structure
if there will more relations will added later.
Last Updated: Feb 2nd, 2007