Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science, Shift-Reduce parsing is a category of efficient, table-driven
bottom-up parsing methods for computer languages and other notations
formally defined by a grammar. The parsing methods most commonly used
today, LR parsing and its variations, are shift-reduce methods. The
precedence parsers used before the invention of LR parsing are also
shift-reduce methods. All shift-reduce parsers have similar outward
effects, in the incremental order in which they build a parse tree or
call specific output actions. The outward actions of an LR parser are
best understood by ignoring the arcane mathematical details of how LR
parser tables are generated, and instead looking at the parser as just
some generic shift-reduce method.