input grammar: reverse_precedence_fig_5.y
0 $accept → big_s $end 1 big_s → small_a big_a big_b small_a 2 | small_b big_a big_b small_b 3 big_a → small_a big_c big_d big_e 4 big_b → small_c 5 | foo 6 big_c → big_d 7 big_d → small_a 8 big_e → small_a 9 | bar
0 $accept → • big_s $end 1 big_s → • small_a big_a big_b small_a 2 | • small_b big_a big_b small_b small_b shift, and go to state 1 small_a shift, and go to state 2 big_s go to state 3
2 big_s → small_b • big_a big_b small_b 3 big_a → • small_a big_c big_d big_e small_a shift, and go to state 4 big_a go to state 5
1 big_s → small_a • big_a big_b small_a 3 big_a → • small_a big_c big_d big_e small_a shift, and go to state 4 big_a go to state 6
0 $accept → big_s • $end $end shift, and go to state 7
3 big_a → small_a • big_c big_d big_e 6 big_c → • big_d 7 big_d → • small_a small_a shift, and go to state 8 big_c go to state 9 big_d go to state 10
2 big_s → small_b big_a • big_b small_b 4 big_b → • small_c 5 | • foo small_c shift, and go to state 11 foo shift, and go to state 12 big_b go to state 13
1 big_s → small_a big_a • big_b small_a 4 big_b → • small_c 5 | • foo small_c shift, and go to state 11 foo shift, and go to state 12 big_b go to state 14
0 $accept → big_s $end • $default accept
7 big_d → small_a • [bar, small_a] bar reduce using rule 7 (big_d) small_a reduce using rule 7 (big_d)
3 big_a → small_a big_c • big_d big_e 7 big_d → • small_a small_a shift, and go to state 8 big_d go to state 15
6 big_c → big_d • [small_a] small_a reduce using rule 6 (big_c)
4 big_b → small_c • [small_b, small_a] small_b reduce using rule 4 (big_b) small_a reduce using rule 4 (big_b)
5 big_b → foo • [small_b, small_a] small_b reduce using rule 5 (big_b) small_a reduce using rule 5 (big_b)
2 big_s → small_b big_a big_b • small_b small_b shift, and go to state 16
1 big_s → small_a big_a big_b • small_a small_a shift, and go to state 17
3 big_a → small_a big_c big_d • big_e 8 big_e → • small_a 9 | • bar bar shift, and go to state 18 small_a shift, and go to state 19 big_e go to state 20
2 big_s → small_b big_a big_b small_b • [$end] $end reduce using rule 2 (big_s)
1 big_s → small_a big_a big_b small_a • [$end] $end reduce using rule 1 (big_s)
9 big_e → bar • [small_c, foo] small_c reduce using rule 9 (big_e) foo reduce using rule 9 (big_e)
8 big_e → small_a • [small_c, foo] small_c reduce using rule 8 (big_e) foo reduce using rule 8 (big_e)
3 big_a → small_a big_c big_d big_e • [small_c, foo] small_c reduce using rule 3 (big_a) foo reduce using rule 3 (big_a)