Page 1 of 1

QUESTION 2 Given the following translation grammar, answer these following questions. 1. Expr Factor (1) Tlist {2} ident

Posted: Fri Jul 08, 2022 6:17 am
by answerhappygod
Question 2 Given The Following Translation Grammar Answer These Following Questions 1 Expr Factor 1 Tlist 2 Ident 1
Question 2 Given The Following Translation Grammar Answer These Following Questions 1 Expr Factor 1 Tlist 2 Ident 1 (48.74 KiB) Viewed 25 times
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)