The Gateway to Computer Science Excellence
0 votes
54 views
what is sequence order of solving LR(K) grammar, if the question is asking about SLR, CLR, LALR? what is sequence after solving SLR(1) (assume till now grammar is not SLR(1)), then proceed for LALR/CLR DFA???
in Compiler Design by Boss (14.7k points) | 54 views
0
LR(0) then SLR(1), then CLR(1), then LALR(1).

However SLR(1)$\subseteq$ LALR(1)$\subseteq$CLR(1)
0
You need to find CLR first, because after finding it then you will be able to find whether the given grammar is LALR or not after merging of the 2 states having same lookahead.

Please log in or register to answer this question.

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,645 questions
56,563 answers
195,733 comments
101,647 users