1 0 $accept : S $end 2 3 1 S : error 4 6 state 0 7 $accept : . S $end (0) 8 9 error shift 1 10 . error 11 12 S goto 2 13 14 15 state 1 16 S : error . (1) 17 18 . reduce 1 19 20 21 state 2 22 $accept : S . $end (0) 23 24 $end accept 25 26 27 3 terminals, 2 nonterminals 28 2 grammar rules, 3 states 29