Content deleted Content added
Added sources and minor changes in grammar and wording, Please make sure I didn't ruin any coding language, or improperly reference a link. |
m removed a hyphen |
||
Line 2:
In [[computer science]], a '''Simple LR''' or '''SLR parser''' is a type of [[LR parser]] with small [[LR parser#Constructing LR(0) parsing tables|parse table]]s 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 parsing|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
SLR and LALR were both developed by [[Frank DeRemer]] as the first practical uses of [[Donald Knuth]]'s LR parser theory.<ref>https://wiki.eecs.yorku.ca/course_archive/2013-14/W/6339/_media/lrk.pdf</ref><ref>https://www.seas.upenn.edu/~cis5110/notes/cis511-sl9.pdf</ref> The tables created for real grammars by full LR methods were impractically large, larger than most computer memories of that decade, with 100 times or more parser states than the SLR and LALR methods.<ref>https://books.google.com/books?id=nEA9AAAAIAAJ&pg=PA87</ref>
|