I noticed it when I was checking for shift/reduce errors with bison and noticed there was a shift reduce error. It then showed to me that I had a rule for re assignment something like this
reAssignRule:
tok_ID tok_ASSIGN expr
but I also had the following
binOpRule:
tok_ID tok_ASSIGN expr
The one below seemed like the right choice since it really was just a binary operation happening. Decided to get rid of the top rule and all the logic for it in the semantic file.
I noticed it when I was checking for shift/reduce errors with bison and noticed there was a shift reduce error. It then showed to me that I had a rule for re assignment something like this
but I also had the following
The one below seemed like the right choice since it really was just a binary operation happening. Decided to get rid of the top rule and all the logic for it in the semantic file.