Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science, a Simple LR or SLR parser is a type of LR parser with small
parse tables and a relatively simple parser generator algorithm. As with
other types of LR(1) parser, an SLR parser is quite efficient at finding
the single correct bottom-up parse in a single left-to-right scan over
the input stream, without guesswork or backtracking. The parser is
mechanically generated from a formal grammar for the language. SLR and
the more-general methods LALR parser and Canonical LR parser have
identical methods and similar tables at parse time; they differ only in
the mathematical grammar analysis algorithms used by the parser
generator tool. SLR and LALR generators create tables of identical size
and identical parser states.