Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged lr-parser
0
0 votes
1
1 answer
20.0k
20.0k views
LALR vs. CLR vs. SLR
Could someone please help me check the conflicts in LALR parser. I never understand the difference between these CLR and LALR. and because of this i even forget the SLR p...
Aspi R Osa
20.0k
views
asked
Jan 22, 2016
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
1 vote
3
3 answers
1.5k
1.5k views
LR(1) states
Here what will be the lookahead for first state?Here is given answer:Q. 50Consider the following augmented grammar G.\[\begin{aligned}\boldsymbol{G}: & E \rightarrow E \\...
Pradip Nichite
1.5k
views
asked
Jan 17, 2016
Compiler Design
parsing
compiler-design
lr-parser
test-series
+
–
0
0 votes
1
1 answer
591
591 views
shift reduce
Perform a shift - reduce parser of the input aaa $+a^{*}+$ according to the grammar?\[\mathrm{A} \rightarrow \mathrm{AA}+\left|\mathrm{AA}^{*}\right| \mathrm{a}\]Show the...
Sourabh Kumar
591
views
asked
Jan 14, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
0 votes
4
4 answers
1.3k
1.3k views
Grammar Type?
The grammar $E \to T + E \mid T$ is?$\text{LR}(0)$ and $\text{LL}(1)$Not an operator grammarAmbiguous$\text{SLR}(1)$ but not $\text{LL}(1)$As the question did not seem to...
worst_engineer
1.3k
views
asked
Jan 13, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
0 votes
1
1 answer
695
695 views
Compiler question
I did in this way :There is conflict , right ? As A - g. and B - g. both going to $ and gConsider the following CFG.\[\begin{array}{l}\mathrm{S} \rightarrow \mathrm{aA}|a...
worst_engineer
695
views
asked
Jan 9, 2016
Compiler Design
compiler-design
context-free-grammar
parsing
lr-parser
test-series
+
–
0
0 votes
1
answers
1 answer
1.8k
1.8k views
Is there three SR conflict in the CLR(1) grammar
Will not there be 3 SR conflicts in CLR(1) reduction ?In fact their ans also says this :In the state I1 , will it not be SR conflict ?Consider the following augmented gra...
worst_engineer
1.8k
views
asked
Jan 9, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
0 votes
1
1 answer
543
543 views
parsing
In the grammar given below, sum of number of error states and conflicting states is. $\qquad$Consider Non-recursive Predictive parsing table and 'S' as start symbol.\[\be...
asu
543
views
asked
Jan 7, 2016
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
test-series
+
–
0
0 votes
1
answers
1 answer
1.8k
1.8k views
Test Series Qs Compiler Design LR(0)
Consider the following grammar. S $\rightarrow$ (S)S | ∊How many conflicts occur in LR (0) parser for the above grammar?
mysticPrince
1.8k
views
asked
Jan 3, 2016
Compiler Design
compiler-design
lr-parser
+
–
2
2 votes
1
1 answer
1.0k
1.0k views
Slr(1)
S->aAb/aBc/bAd/bBeA->gB->gHow many states in slr(1)
sourabh
1.0k
views
asked
Jan 1, 2016
Compiler Design
compiler-design
grammar
parsing
lr-parser
+
–
2
2 votes
1
answers
1 answer
1.1k
1.1k views
Conflict
If lalr(1) has no conflict then clr(1) never contain any conflictIt is true or falseIf it is false explain
sourabh
1.1k
views
asked
Jan 1, 2016
Compiler Design
compiler-design
parsing
lr-parser
true-false
+
–
0
0 votes
1
1 answer
461
461 views
Lr(k)
Which of the following statement(s) is/are TRUE?S1: LR grammar can describe more number of languages than LL grammar.S2: In LR (K) grammar requirement is less stringent t...
sourabh
461
views
asked
Dec 29, 2015
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
test-series
+
–
0
0 votes
1
answers
1 answer
1.1k
1.1k views
Grammar is LALR or not
Akanksha Kesarwani
1.1k
views
asked
Dec 19, 2015
Compiler Design
compiler-design
parsing
lr-parser
made-easy-test-series
+
–
0
0 votes
1
1 answer
736
736 views
Parsing2
Can a grammar which is not LL can be SLR?where will you fit LL in sequence below:LR(0) = SLR = LALR = LR * = stands for implies
Zeal
736
views
asked
Dec 16, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
1
1 answer
724
724 views
Parsing
Can anybody enumerate the similarities and dissimilarities between LL, SLR, LALR and LR parsers.
Zeal
724
views
asked
Dec 15, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
1
answers
1 answer
2.3k
2.3k views
SR conflict
Which of the following set could result SR conflict in LALR(1)?a) A→ a.b, {b} B→ a. , {a}b) A→ a.a , {a} B→ a. , {b}c) A→ b.a , {b} B→ b.,{a}d) A→ b.b , {a} B→...
srestha
2.3k
views
asked
Dec 15, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
1 vote
2
answers
2 answers
856
856 views
Compiler
Consider the following grammerS→ bAd /bBeA→aB→aThe above grammer is ________________1) SLR(1)2) LALR(1) but not SLR(1)3) CLR(1) but not LALR(1)d) Not LR(1)
srestha
856
views
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
+
–
1
1 vote
3
answers
3 answers
3.1k
3.1k views
SR conflict
Which of the following could result in Shift-Reduce conflict in LR(0) parser?1){ A→ b.c ,B→b. }2){A→a.b,B→b. }3) {A→∊. , B→.a}4)All of these
srestha
3.1k
views
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
2
answers
2 answers
1.1k
1.1k views
CLR
S'→SS→A/BA→fAi/nB→fBii/dFor the above augmented grammer , the number of states in LR(1) parser are_______________
srestha
1.1k
views
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
+
–
0
0 votes
1
1 answer
830
830 views
LR(1) parser query 1
Ques:- Check whether the following grammar is clr(1) grammar or not or lalr grammar or not.S - (S)S - aProblem-The work( for checking the given grammar is LR(1) or not) d...
khushtak
830
views
asked
Dec 14, 2015
Compiler Design
compiler-design
lr-parser
+
–
1
1 vote
5
answers
5 answers
9.8k
9.8k views
When LALR(1) is constructed form CLR(1) does not contain any shift reduce conflicts?
Soumyashree
9.8k
views
asked
Dec 4, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
18
18 votes
2
answers
2 answers
3.7k
3.7k views
TIFR CSE 2012 | Part B | Question: 17
Which of the following correctly describes $\text{LR}(k)$ parsing?The input string is alternately scanned left to right and right to left with $k$ reversals.Input string ...
Misbah Ghaya
3.7k
views
asked
Nov 2, 2015
Compiler Design
tifr2012
compiler-design
parsing
lr-parser
+
–
1
1 vote
2
2 answers
2.6k
2.6k views
Which type of conflict is present ?
Hi , I am confused about this grammar .I can find there is one SR conflict , please clarify. S - Aa | bAc | dc | bdaA - d Here , it is not LL1 as A - bAc and S - bda both...
worst_engineer
2.6k
views
asked
Sep 11, 2015
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
+
–
2
2 votes
3
3 answers
2.4k
2.4k views
SET OF VIABLE PREFIXES FOR A GIVEN SLR(1) GRAMMAR IS REGULAR LANGUAGE ?
SET OF VIABLE PREFIXES FOR A GIVEN SLR(1) GRAMMAR IS REGULAR LANGUAGE ?
Ankit Chourasiya
2.4k
views
asked
Sep 9, 2015
Compiler Design
compiler-design
parsing
lr-parser
viable-prefix
+
–
2
2 votes
6
6 answers
14.3k
14.3k views
Why is left recursion not a problem for bottom up parsers?
I know the parsing logic of bottom up parsers, that they start from the terminal and reduce it to the start symbol. But what really confuses me is the construction of LR(...
prasitamukherjee
14.3k
views
asked
Jul 16, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
37
37 votes
2
answers
2 answers
13.6k
13.6k views
GATE CSE 2015 | Set 3 | Question: 16
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the ...
go_editor
13.6k
views
asked
Feb 14, 2015
Compiler Design
gatecse-2015-set3
compiler-design
parsing
normal
lr-parser
+
–
80
80 votes
6
6 answers
28.2k
28.2k views
GATE CSE 2015 | Set 1 | Question: 13
Which one of the following is TRUE at any valid state in shift-reduce parsing?Viable prefixes appear only at the bottom of the stack and not insideViable prefixes appear ...
Misbah Ghaya
28.2k
views
asked
Feb 12, 2015
Compiler Design
gatecse-2015-set1
compiler-design
parsing
normal
viable-prefix
lr-parser
+
–
2
2 votes
1
answers
1 answer
1.5k
1.5k views
LR(K) grammer can be ambigious or not?
ansaritk
1.5k
views
asked
Dec 17, 2014
Compiler Design
compiler-design
parsing
lr-parser
ambiguous
+
–
57
57 votes
7
answers
7 answers
48.9k
48.9k views
GATE CSE 2014 | Set 1 | Question: 34
A canonical set of items is given below$S \to L . R $$Q \to R.$On input symbol $<$ the set hasa shift-reduce conflict and a reduce-reduce conflict.a shift-reduce conflict...
go_editor
48.9k
views
asked
Sep 26, 2014
Compiler Design
gatecse-2014-set1
compiler-design
parsing
normal
lr-parser
+
–
31
31 votes
2
answers
2 answers
16.4k
16.4k views
GATE CSE 1998 | Question: 1.26
Which of the following statements is true?SLR parser is more powerful than LALRLALR parser is more powerful than Canonical LR parserCanonical LR parser is more powerful t...
Kathleen
16.4k
views
asked
Sep 25, 2014
Compiler Design
gate1998
compiler-design
parsing
normal
lr-parser
+
–
69
69 votes
6
answers
6 answers
20.8k
20.8k views
GATE CSE 2013 | Question: 40
Consider the following two sets of $\textsf{LR(1)}$ items of an $\textsf{LR(1)}$ grammar.$ $\begin{array}{l|l}X \rightarrow c.X, c∕d &X → c.X, \$\\X \rightarrow .cX, c∕ ...
Arjun
20.8k
views
asked
Sep 24, 2014
Compiler Design
gatecse-2013
compiler-design
parsing
normal
lr-parser
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
next »