Contents    Page-10    Prev    Next    Page+10    Index   

Resolving Shift/Reduce Conflicts[slide by John Werth.]

The rule for reducing shift/reduce conflicts is:

Our Pascal grammar has a shift/reduce conflict in the case of the if statement; these rules resolve it in favor of shift, which does the right thing.