QUESTION 2 Given the following translation grammar, answer these following questions. 1. Expr Factor (1) Tlist {2} ident
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 2 Given the following translation grammar, answer these following questions. 1. Expr Factor (1) Tlist {2} ident
QUESTION 2 Given the following translation grammar, answer these following questions. 1. Expr Factor (1) Tlist {2} ident Tlist {3} num 2. Factor 3. Factor → (4) 4. Tlist → Factor num 5. Tlist → {5} a) Find the selection sets for the grammar. (12 Marks) b) Construct a pushdown translator for the grammar (5 Marks) c) Show the sequences of stacks and output when parsing the input string: ident num nume (13 Marks)