Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Ambiguities and Conflicts > Shift/Reduce Conflicts

7.6. Shift/Reduce Conflicts

Identifying a shift/reduce conflict is a little harder. To identify the conflict, we will do the following:

  • Find the shift/reduce error in name.output.

  • Identify the reduce rule.

  • Identify the relevant shift rule(s).

  • See what state the reduce rule reduces to.

  • Deduce the token stream that will produce the conflict.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial