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 2 terminals, 2 nonterminals 28 2 grammar rules, 3 states 29 30 grammar parser grammar 31 symbol# value# symbol 32 0 0 $end 33 1 256 error 34 2 257 $accept 35 3 258 S 36