1 0 $accept : expr $end 2 3 1 expr : '(' expr ')' 4 5state 0 6 $accept : . expr $end (0) 7 8 '(' shift 1 9 . error 10 11 expr goto 2 12 13 14state 1 15 expr : '(' . expr ')' (1) 16 17 '(' shift 1 18 . error 19 20 expr goto 3 21 22 23state 2 24 $accept : expr . $end (0) 25 26 $end accept 27 28 29state 3 30 expr : '(' expr . ')' (1) 31 32 ')' shift 4 33 . error 34 35 36state 4 37 expr : '(' expr ')' . (1) 38 39 . reduce 1 40 41 424 terminals, 2 nonterminals 432 grammar rules, 5 states 44