Parse Trace Example, with States Stack Action 1 Input a := 7$ := 7$ shift 4 i id 4 shift 6 1 id 4:= 6 7$ 1 id 4:= 6 num
Posted: Sun May 15, 2022 12:15 pm
Parse Trace Example, with States Stack Action 1 Input a := 7$ := 7$ shift 4 i id 4 shift 6 1 id 4:= 6 7$ 1 id 4:= 6 num 10 $ shift 10 reduce by rule 5 (E->num) reduce by rule 2 (S->id:=E) accept i id 4 := 6 E 11 1 S2 Grammar 2: S -> id := E 4: E -> id 5: E -> num