Presentation is loading. Please wait.

Presentation is loading. Please wait.

Quiz 7: Tuesday, Oct 20 1.(1 pt What are the main steps of your MJ Driver for PA3? 1.(2 pts) Show the JavaCup action for a given grammar rule for building.

Similar presentations


Presentation on theme: "Quiz 7: Tuesday, Oct 20 1.(1 pt What are the main steps of your MJ Driver for PA3? 1.(2 pts) Show the JavaCup action for a given grammar rule for building."— Presentation transcript:

1 Quiz 7: Tuesday, Oct 20 1.(1 pt What are the main steps of your MJ Driver for PA3? 1.(2 pts) Show the JavaCup action for a given grammar rule for building part of the AST. 3.(2 pts) Show the typical action of the Type Checking Visitor at a given node in your PA3. Bonus: Name one new feature added to PA2 grammar to get PA3 grammar.

2 Quiz 8: Tuesday, Nov 3 1.Demonstrate that you know what a function activation is. 2.How is the frame pointer used during execution? 3.Why do we maintain a separate stack pointer and frame pointer during execution of a program? 4.At what points in the program do we need to generate code to manage the runtime stack storage allocation/deallocation? Extra Credit: Name one MeggyJava feature that is added from PA3 to PA4.

3 Quiz 9: Tuesday, Nov 10 1.What extra information is used in resolving conflicts in SLR(1) parsing versus LR(0) parsing? 2. Show the LR(0) closure(E->. E – T) for the grammar: 3.Show the SLR(1) table entries for state 7. Extra Credit: What day is PA4 due? S-> E E-> E-T | T T-> F ↑ T | F F-> (E) | i 8 5 4 3 7: E->E-.T T->.F ↑ T T->.F F->.( F->.i F T ( i

4 Quiz 10: Tuesday, Nov 17 1.Explain how a reduce-reduce conflict can be created by making an LALR(1) DFA from an LR(1) DFA. 2.What entries do you need to insert for a given method scope in MeggyJava? 3.What are the typical actions when creating a symbol table during AST traversal for a part of the program that creates a new scope (e.g., method declaration)? Extra Credit: What day is the last day of classes this semester?


Download ppt "Quiz 7: Tuesday, Oct 20 1.(1 pt What are the main steps of your MJ Driver for PA3? 1.(2 pts) Show the JavaCup action for a given grammar rule for building."

Similar presentations


Ads by Google