Show a complete parse, including the parse stack contents, input string, and action for the string ((id)*(id+id)), using
Posted: Sun Jul 03, 2022 11:21 am
Show a complete parse, including the parse stack contents, inputstring, and action for the string ((id)*(id+id)), using the grammarand parse table in Section 4.5.3.
State 0 1 2 3 4 5 6 7 8 9 10 11 id S5 S5 S5 S5 + S6 R2 S7 R4 R4 Action R6 R6 S6 R1 R3 R5 S7 R3 R5 ( S4 S4 S4 S4 ) R2 R4 R6 S11 R1 R3 R5 accept R2 R4 R6 R1 R3 R5 1 Goto T 2 F 3 823 9 3 10
State 0 1 2 3 4 5 6 7 8 9 10 11 id S5 S5 S5 S5 + S6 R2 S7 R4 R4 Action R6 R6 S6 R1 R3 R5 S7 R3 R5 ( S4 S4 S4 S4 ) R2 R4 R6 S11 R1 R3 R5 accept R2 R4 R6 R1 R3 R5 1 Goto T 2 F 3 823 9 3 10