17.6 LR(1) PARSING WITH λ-PRODUCTIONS
A λ-production has only one item, as the right-hand side is of length 0. Thus, the λ-production item has the marker (·) at the end of the righthand side and always results in a reduce operation. We can display the rule A → λ as the item A → λ· or as A → · without the λ. Any state in a dfa with this item is a final state.
Get An Introduction to Formal Languages and Automata, 7th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.