The Gateway to Computer Science Excellence
+3 votes
If we merge states in LR(1) parser to form a LALR(1) parser, we may introduce
  1. shift-reduce conflict
  2. reduce-reduce conflict
  3. no extra conflict
  4. both shift-reduce as well as reduce-reduce
in Compiler Design by Veteran (422k points) | 169 views
B. we can only introduce R-R conflicts.

1 Answer

+1 vote
ans is B.

It is because we construct LALR parsing table by merging states of CLR(1) which are only separated by look a heads. In doing so we may merge states which introduce R-R conflicts
by (481 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,666 questions
56,154 answers
93,729 users