compiler construction - Why Bison gives Conflict: 2 Shift Reduce error -
i'm trying below yacc grammar part gives me, wrong this? , how can solve it? there rules define grammar in bison/ yacc ? c:\users\dilan\documents\lexprogram\miniproject>bison -dy videostore.y conflicts: 1 shift/reduce and yacc code : %start videostore %token title %token type %token name %token days %% videostore : movies customers | customers movies | movies | customers ; movies : movies movie | movie ; movie : title type rentals2 ; rentals2 : rentals2 rental2 | rental2 ; rental2 : customer1 ; customer1 : name days ; customers : customers customer | customer ; customer : name days rentals ; rentals : rentals rental | rental ; rental : movie1 ; movie1 : title type ; %% int trace=0; my problem videostore.y: conflicts: 2 shift/reduce , how