Terminals which are not used:

   JUNK


Conflict in state 6 between rule 4 and token DIV resolved as reduce.
Conflict in state 6 between rule 4 and token MINUS resolved as reduce.
Conflict in state 6 between rule 4 and token MUL resolved as reduce.
Conflict in state 6 between rule 4 and token PLUS resolved as reduce.
Conflict in state 12 between rule 8 and token DIV resolved as reduce.
Conflict in state 12 between rule 8 and token MINUS resolved as reduce.
Conflict in state 12 between rule 8 and token MUL resolved as reduce.
Conflict in state 12 between rule 8 and token PLUS resolved as reduce.
Conflict in state 13 between rule 6 and token DIV resolved as shift.
Conflict in state 13 between rule 6 and token MINUS resolved as reduce.
Conflict in state 13 between rule 6 and token MUL resolved as shift.
Conflict in state 13 between rule 6 and token PLUS resolved as reduce.
Conflict in state 14 between rule 7 and token DIV resolved as reduce.
Conflict in state 14 between rule 7 and token MINUS resolved as reduce.
Conflict in state 14 between rule 7 and token MUL resolved as reduce.
Conflict in state 14 between rule 7 and token PLUS resolved as reduce.
Conflict in state 15 between rule 5 and token DIV resolved as shift.
Conflict in state 15 between rule 5 and token MINUS resolved as reduce.
Conflict in state 15 between rule 5 and token MUL resolved as shift.
Conflict in state 15 between rule 5 and token PLUS resolved as reduce.

Grammar
rule 1    grammar -> expr
rule 2    expr -> LP expr RP
rule 3    expr -> NUMBER
rule 4    expr -> MINUS expr
rule 5    expr -> expr PLUS expr
rule 6    expr -> expr MINUS expr
rule 7    expr -> expr MUL expr
rule 8    expr -> expr DIV expr

Terminals, with rules where they appear

$ (-1)
error (256)
DIV (257) 8
JUNK (258)
LP (259) 2
MINUS (260) 4 6
MUL (261) 7
NUMBER (262) 3
PLUS (263) 5
RP (264) 2
UNARY (265)

Nonterminals, with rules where they appear

grammar (12)
    on left: 1
expr (13)
    on left: 2 3 4 5 6 7 8, on right: 1 2 4 5 6 7 8


state 0

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    grammar	go to state 16
    expr	go to state 4



state 1

    expr  ->  LP . expr RP   (rule 2)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 5



state 2

    expr  ->  MINUS . expr   (rule 4)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 6



state 3

    expr  ->  NUMBER .   (rule 3)

    $default	reduce using rule 3 (expr)



state 4

    grammar  ->  expr .   (rule 1)
    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)

    DIV 	shift, and go to state 7
    MINUS	shift, and go to state 8
    MUL 	shift, and go to state 9
    PLUS	shift, and go to state 10

    $default	reduce using rule 1 (grammar)



state 5

    expr  ->  LP expr . RP   (rule 2)
    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)

    DIV 	shift, and go to state 7
    MINUS	shift, and go to state 8
    MUL 	shift, and go to state 9
    PLUS	shift, and go to state 10
    RP  	shift, and go to state 11



state 6

    expr  ->  MINUS expr .   (rule 4)
    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)


    $default	reduce using rule 4 (expr)



state 7

    expr  ->  expr DIV . expr   (rule 8)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 12



state 8

    expr  ->  expr MINUS . expr   (rule 6)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 13



state 9

    expr  ->  expr MUL . expr   (rule 7)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 14



state 10

    expr  ->  expr PLUS . expr   (rule 5)

    LP  	shift, and go to state 1
    MINUS	shift, and go to state 2
    NUMBER	shift, and go to state 3

    expr	go to state 15



state 11

    expr  ->  LP expr RP .   (rule 2)

    $default	reduce using rule 2 (expr)



state 12

    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)
    expr  ->  expr DIV expr .   (rule 8)


    $default	reduce using rule 8 (expr)



state 13

    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr MINUS expr .   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)

    DIV 	shift, and go to state 7
    MUL 	shift, and go to state 9

    $default	reduce using rule 6 (expr)



state 14

    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr MUL expr .   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)


    $default	reduce using rule 7 (expr)



state 15

    expr  ->  expr . PLUS expr   (rule 5)
    expr  ->  expr PLUS expr .   (rule 5)
    expr  ->  expr . MINUS expr   (rule 6)
    expr  ->  expr . MUL expr   (rule 7)
    expr  ->  expr . DIV expr   (rule 8)

    DIV 	shift, and go to state 7
    MUL 	shift, and go to state 9

    $default	reduce using rule 5 (expr)



state 16

    $   	go to state 17



state 17

    $   	go to state 18



state 18

    $default	accept