Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged lr-parser
1
votes
1
answer
151
conflicts
consider a state having this L' -> L. {$} L -> L.b {$,B} does this state have SR coonflict
consider a state having thisL' - L. {$}L - L.b {$,B}does this state have SR coonflict
A_i_$_h
357
views
A_i_$_h
asked
Oct 21, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
votes
1
answer
152
compiler
S->SAS | a A->AA | b is the grammar a) LR(0) b)SLR(1) c)LALR(1) d)none
S->SAS | aA->AA | bis the grammara) LR(0)b)SLR(1)c)LALR(1)d)none
A_i_$_h
338
views
A_i_$_h
asked
Oct 20, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
2
votes
0
answers
153
Compiler Design:- Number of conflicts in LR(0)
Consider the following grammer:- Stmts -> Stmt | Stmts;Stmt Stmt -> Var =E Var ->id[E] | id E-> id | (E) Find the number of conflicts in LR(0)?
Consider the following grammer:-Stmts - Stmt | Stmts;StmtStmt - Var =EVar ->id[E] | idE- id | (E)Find the number of conflicts in LR(0)?
rahul sharma 5
1.5k
views
rahul sharma 5
asked
Oct 14, 2017
Compiler Design
compiler-design
lr-parser
grammar
parsing
+
–
0
votes
0
answers
154
MadeEasy Subject Test: Compiler Design - Parsing
Let G be a grammar with the following productions. If LR(1) Parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an item in the initial state?
Let G be a grammar with the following productions.If LR(1) Parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an ...
Aibi
444
views
Aibi
asked
Sep 22, 2017
Compiler Design
compiler-design
parsing
lr-parser
made-easy-test-series
+
–
0
votes
1
answer
155
Ace Test Series: Compiler Design - Parsing
S -> Aa A -> Ab A -> c Which of the following item is present in LR(1) item with S' -> .S, $\$ ? A) A -> .Ab, $\$ B) A -> .c, $\$ C) A -> .Ab, a/b D) None
S - AaA - AbA - cWhich of the following item is present in LR(1) item with S' - .S, $\$$ ?A) A - .Ab, $\$$B) A - .c, $\$$C) A - .Ab, a/bD) None
Aibi
737
views
Aibi
asked
Sep 22, 2017
Compiler Design
compiler-design
ace-test-series
parsing
lr-parser
+
–
8
votes
2
answers
156
Ace Test Series 2018: Compiler Design - Parsing
Consider the following context-free grammar S → SS + | SS*| a It is a)LL(1) b)LR(0) c)Both d)none
Consider the following context-free grammarS → SS + | SS*| aIt isa)LL(1)b)LR(0)c)Bothd)none
smelly indian
1.9k
views
smelly indian
asked
Sep 6, 2017
Compiler Design
theory-of-computation
ace-test-series
compiler-design
parsing
lr-parser
ll-parser
+
–
2
votes
2
answers
157
Please solve my doubt
Q if any Grammar is LL(1) definitely LALR(1) ? It is true or false Please ans explain in detail.
Q if any Grammar is LL(1) definitely LALR(1) ?It is true or falsePlease ans explain in detail.
kallu singh
703
views
kallu singh
asked
Sep 5, 2017
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
true-false
+
–
0
votes
1
answer
158
Parsing
Which of the following is not LR(1)? a. S->Uab|Vac U->d V->d b. S->Uab|Vab|Vac U->d V->d c.S->AB A->a B->b d. A->Ab A->a|c Please Explain.
Which of the following is not LR(1)?a. S->Uab|VacU->dV->db. S->Uab|Vab|VacU->dV->dc.S->ABA->aB->bd. A->AbA->a|cPlease Explain.
nishant279
510
views
nishant279
asked
Aug 30, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
2
votes
2
answers
159
Gate Practice question check if grammar is LR(0)?
is it correct please tell me its urgent!
is it correct please tell me its urgent!
Pranav Madhani
3.8k
views
Pranav Madhani
asked
Aug 19, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
votes
0
answers
160
Doubt in CD
In bottom up parsing , if the same entry has both SR or RR moves then what is the problem? Why is it called a confict ? Why cant we just leave it like that? and Why is it not LR(0)?
In bottom up parsing , if the same entry has both SR or RR moves then what is the problem? Why is it called a confict ? Why cant we just leave it like that? and Why is it...
Parshu gate
357
views
Parshu gate
asked
Aug 15, 2017
Compiler Design
compiler-design
lr-parser
+
–
2
votes
1
answer
161
Ullman 4.3
Is this grammar ambiguous? S-->SxA|A A-->AyB|B B-->zB|(S)|m|n I cant prove it ambiguos.As this grammar is not in LR(1) it may or may not be ambiguous.
Is this grammar ambiguous?S >SxA|AA >AyB|BB >zB|(S)|m|nI cant prove it ambiguos.As this grammar is not in LR(1) it may or may not be ambiguous.
reena_kandari
497
views
reena_kandari
asked
Aug 14, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
lr-parser
descriptive
+
–
2
votes
2
answers
162
Complier Design Test 1.1
Ques. S --> Aa/bAc/dc A --> d Which of them is correct. Please provide detailed information. a) LALR(1) but not SLR(1) b) Both SLR(1) and LALR(1) c) Grammar is Ambiguous d) Neither SLR(1) NOR LALR(1)
Ques. S Aa/bAc/dc A dWhich of them is correct. Please provide detailed information.a) LALR(1) but not SLR(1)b) Both SLR(1) and LALR(1)c) Grammar is Ambiguo...
Shivam Bhardwaj
897
views
Shivam Bhardwaj
asked
Aug 10, 2017
Compiler Design
compiler-design
parsing
lr-parser
ambiguous-grammar
test-series
+
–
1
votes
1
answer
163
LR(0) OR NOT???
If i am wrong let me correct.
If i am wrong let me correct.
learner_geek
517
views
learner_geek
asked
Aug 5, 2017
Compiler Design
compiler-design
lr-parser
grammar
theory-of-computation
context-free-language
+
–
1
votes
1
answer
164
Compiler parser
is this given diagram correct or incorrect if incorrect then please correct it .
is this given diagram correct or incorrect if incorrect then please correct it .
learner_geek
345
views
learner_geek
asked
Aug 2, 2017
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
descriptive
+
–
1
votes
1
answer
165
#testbook test series
shefali1
860
views
shefali1
asked
Jul 24, 2017
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
left-recursion
ambiguous-grammar
testbook-test-series
+
–
0
votes
1
answer
166
compiler design
the G is S-> while(E)S/a E-> a for nested while statement a.is not LR(1) b.is not SLR(1) c.is not LALR(1) d.is LR(0)
the G isS- while(E)S/aE- afor nested while statementa.is not LR(1)b.is not SLR(1)c.is not LALR(1)d.is LR(0)
akankshadewangan24
683
views
akankshadewangan24
asked
Jun 28, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
1
answer
167
Doubt
Where is reduce-reduce conflict here?Plz explain S→S S→SS∣a∣ϵ
Where is reduce-reduce conflict here?Plz explainS→SS→SS∣a∣ϵ
Angkit
521
views
Angkit
asked
Jun 21, 2017
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
0
votes
2
answers
168
pune university question paper
what is difference between LALR and CLR parser?
what is difference between LALR and CLR parser?
_aniket24_
454
views
_aniket24_
asked
May 8, 2017
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
0
votes
2
answers
169
made easy test series
Vineeta Garg
431
views
Vineeta Garg
asked
Feb 5, 2017
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
numerical-answers
made-easy-test-series
+
–
1
votes
0
answers
170
Self Doubt
If in the state table of a LR parser, in some row, we have more than one SR or RR conflict, then is it considered a single conflict? Reference:- https://gateoverflow.in/113114/slr-parsing-table#c113505
If in the state table of a LR parser, in some row, we have more than one SR or RR conflict, then is it considered a single conflict?Reference:- https://gateoverflow.in/11...
Samujjal Das
402
views
Samujjal Das
asked
Feb 4, 2017
Compiler Design
parsing
lr-parser
compiler-design
+
–
0
votes
1
answer
171
YACC-
in case of shift-reduce and R-R conflict, which is favored by YACC?
in case of shift-reduce and R-R conflict, which is favored by YACC?
Aboveallplayer
488
views
Aboveallplayer
asked
Feb 3, 2017
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
0
votes
1
answer
172
Compiler design
G : Grammar S1 : Every LALR(1) G is LR(1). S2 : Every LR(1) G is LALR(1). S3: Some LL(1) is Regular. A. TFF B.TFT C. TTF D. FTT E. NONE
G : GrammarS1 : Every LALR(1) G is LR(1).S2 : Every LR(1) G is LALR(1).S3: Some LL(1) is Regular.A. TFF B.TFT C. TTF D. FTT E. NONE
parthbkgadoya
320
views
parthbkgadoya
asked
Feb 1, 2017
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
votes
1
answer
173
COMPILERS DOUBT
IS EVERY LL(1) GRAMMAR LALR(1)?? I DONT KNOW WHETHER ITS TRUE OR NOT? CAN SOMEONE EXPLAIN??
IS EVERY LL(1) GRAMMAR LALR(1)?? I DONT KNOW WHETHER ITS TRUE OR NOT?CAN SOMEONE EXPLAIN??
sushmita
507
views
sushmita
asked
Jan 17, 2017
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
+
–
0
votes
1
answer
174
Parsing
Why in this I6 and I7 are not in same state??
Why in this I6 and I7 are not in same state??
kirtikanwar
311
views
kirtikanwar
asked
Jan 11, 2017
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
votes
1
answer
175
testbook
focus _GATE
404
views
focus _GATE
asked
Jan 11, 2017
Compiler Design
compiler-design
parsing
lr-parser
testbook-test-series
+
–
1
votes
2
answers
176
parsing
State True/False : "LR(0)⊂SLR(1)⊂LALR(1)⊂LR(1)".
State True/False : "LR(0)⊂SLR(1)⊂LALR(1)⊂LR(1)".
gate_forum
612
views
gate_forum
asked
Dec 31, 2016
Compiler Design
compiler-design
parsing
lr-parser
true-false
+
–
0
votes
1
answer
177
parsing table space
iita
212
views
iita
asked
Dec 20, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
votes
1
answer
178
compiler grammar
Give a grammar which is LL(1) but not LALR(1) .
Give a grammar which is LL(1) but not LALR(1) .
papesh
501
views
papesh
asked
Dec 18, 2016
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
descriptive
+
–
0
votes
1
answer
179
SLR(1) Parser
Every SLR grammar is unambiguous. True or False? Why?
Every SLR grammar is unambiguous. True or False? Why?
Shyam Singh 1
1.5k
views
Shyam Singh 1
asked
Dec 10, 2016
Compiler Design
compiler-design
parsing
lr-parser
ambiguous-grammar
descriptive
+
–
0
votes
1
answer
180
Is this grammar LL1, LR0, SLR1, LALR1, CLR1?
$S\rightarrow (x$ $\text{ }| E]$ $\text{ }| F)$ $X\rightarrow E)$ $\text{ }| F]$ $E\rightarrow A$ $F\rightarrow A$ $A\rightarrow \lambda$
$S\rightarrow (x$$\text{ }| E]$$\text{ }| F)$$X\rightarrow E)$$\text{ }| F]$$E\rightarrow A$$F\rightarrow A$$A\rightarrow \lambda$
GateAspirant999
610
views
GateAspirant999
asked
Dec 10, 2016
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
descriptive
+
–
Page:
« prev
1
2
3
4
5
6
7
8
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register