Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. An operator
precedence parser is a bottom-up parser that interprets an
operator-precedence grammar. For example, most calculators use operator
precedence parsers to convert from the human-readable infix notation
with order of operations format into an internally optimized
computer-readable format like Reverse Polish notation (RPN). Edsger
Dijkstra's shunting yard algorithm is commonly used to implement
operator precedence parsers which convert from infix notation to RPN. An
operator-precedence parser is a simple shift-reduce parser capable of
parsing a subset of LR(1) grammars. More precisely, the
operator-precedence parser can parse all LR(1) grammars where two
consecutive nonterminals never appear in the right-hand side of any
rule.