February 2022
Beginner to intermediate
572 pages
13h
English
Before we look at LR parsing in more depth, we give two definitions. First, we want to know when a right-hand side of a production is on top of the stack. Each symbol from the right-hand side is put on the stack one at a time. To keep track of which symbols from the right-hand side are on top of the stack and which ones are not, we add a marker to the right-hand side, placing the marker between the symbols that are on top of the stack and the symbols that are not yet on the stack. Our first definition is for this marked production, called an item.
Read now
Unlock full access