Simple LR parser: Difference between revisions

Content deleted Content added
Vegaswikian (talk | contribs)
Help needed: Parse table
Corrected typo, LR should have been LR(0)
Line 81:
</table>
 
As can be observed there is a shift-reduce conflict for state 1 and terminal '1'. This occurs because, when the action table for an LR(0) parser is created, reduce actions are inserted on a per-row basis. However, by using a follow set, reduce actions can be added with finer granularity. The follow set for this grammar:
<table border="1" align="center">
<tr align="center">