bnf shift/reduce error corrected