Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Slides
Recent questions tagged parsing
0
votes
1
answer
601
shift reduce
Sourabh Kumar
360
views
Sourabh Kumar
asked
Jan 14, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
votes
4
answers
602
Grammar Type?
The grammar $E \to T + E \mid T$ is? $\text{LR}(0)$ and $\text{LL}(1)$ Not an operator grammar Ambiguous $\text{SLR}(1)$ but not $\text{LL}(1)$ As the question did not seem to be complete , I am trying to guess the question from the answer ( shame on these test series guys , can't even proof-read question ).
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
661
views
worst_engineer
asked
Jan 13, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
votes
1
answer
603
Compiler question
I did in this way : There is conflict , right ? As A -> g. and B -> g. both going to $ and g
I did in this way :There is conflict , right ? As A - g. and B - g. both going to $ and g
worst_engineer
354
views
worst_engineer
asked
Jan 9, 2016
Compiler Design
compiler-design
context-free-grammar
parsing
lr-parser
test-series
+
–
0
votes
1
answer
604
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 ?
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 ?
worst_engineer
1.4k
views
worst_engineer
asked
Jan 9, 2016
Compiler Design
compiler-design
parsing
lr-parser
test-series
+
–
0
votes
1
answer
605
parsing
asu
316
views
asu
asked
Jan 7, 2016
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
test-series
+
–
1
votes
1
answer
606
Verifying Shift-Reduce conflicts in this SLR grammer
S -> BB B -> aB | bB | a | b How many SLR conflicts will occur when we try make parsing table for it. a) 0 b) 1 c) 2 d) None of these ------------------------------------------------------------ ... in Qstn). As you can see, there is such a situation in I3 (left-bottom) and in I4 (right-bottom). So, how many SR conflicts are there 2 or 4 ??
S - BBB - aB | bB | a | bHow many SLR conflicts will occur when we try make parsing table for it.a) 0 b) 1 c) 2 d) None of these Doubt: Do we count 2 SR co...
Tushar Shinde
2.3k
views
Tushar Shinde
asked
Jan 4, 2016
Compiler Design
compiler-design
parsing
testbook-test-series
+
–
3
votes
1
answer
607
MadeEasy Test Series: Compiler Design - Parsing
Which is true? a) Recursive Decent Parsers may suffer from infinite loop. b) Every LR grammer is unambiguous. c) Both a & b d) None Doubt: RDP and LL(1) can go in loop if it is not left-factorized and contains left recursion ... unambiguous, left-factorized and left-rec. free grammer. So, how can it go to infinite loop. Answer given was (c).
Which is true?a) Recursive Decent Parsers may suffer from infinite loop.b) Every LR grammer is unambiguous.c) Both a & bd) None Doubt: RDP and LL(1) can go in loop if it ...
Tushar Shinde
1.1k
views
Tushar Shinde
asked
Jan 3, 2016
Compiler Design
compiler-design
parsing
made-easy-test-series
+
–
2
votes
1
answer
608
Slr(1)
S->aAb/aBc/bAd/bBe A->g B->g How many states in slr(1)
S->aAb/aBc/bAd/bBeA->gB->gHow many states in slr(1)
sourabh
639
views
sourabh
asked
Jan 1, 2016
Compiler Design
compiler-design
grammar
parsing
lr-parser
+
–
2
votes
1
answer
609
Conflict
If lalr(1) has no conflict then clr(1) never contain any conflict It is true or false If it is false explain
If lalr(1) has no conflict then clr(1) never contain any conflictIt is true or falseIf it is false explain
sourabh
817
views
sourabh
asked
Jan 1, 2016
Compiler Design
compiler-design
parsing
lr-parser
true-false
+
–
2
votes
2
answers
610
Is $ a terminal or not ?
Follow(S) comes as {(, ). $ } So, do we count $ ... is also marker to identify that parsing of string has been successfully completed.
Follow(S) comes as {(, ). $ }So, do we count $ as terminal or not.Could anyone please tell me, $ should be considered as terminal or not ? Although I think, I should not...
Sandeep Singh
469
views
Sandeep Singh
asked
Dec 30, 2015
Compiler Design
compiler-design
context-free-language
parsing
+
–
0
votes
1
answer
611
Lr(k)
sourabh
209
views
sourabh
asked
Dec 29, 2015
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
test-series
+
–
1
votes
1
answer
612
Eliminating Left factor
Akanksha Kesarwani
811
views
Akanksha Kesarwani
asked
Dec 20, 2015
Compiler Design
compiler-design
parsing
left-recursion
virtual-gate-test-series
+
–
3
votes
3
answers
613
If a grammar is parsed by LR(0) will it always be LL(1)..??
Q1. Are all LR(0) grammars LL(1) ...?? Please provide an example if not. Q2. Does all parsing methods parses only DCFL ..?? PS. Is it true for general case that LR(k) => LL(k+1)
Q1. Are all LR(0) grammars LL(1) ...??Please provide an example if not.Q2. Does all parsing methods parses only DCFL ..??PS. Is it true for general case that LR(k) = LL(k...
Abhishekcs10
3.2k
views
Abhishekcs10
asked
Dec 20, 2015
Compiler Design
parsing
+
–
0
votes
1
answer
614
Grammar is LALR or not
Akanksha Kesarwani
696
views
Akanksha Kesarwani
asked
Dec 19, 2015
Compiler Design
compiler-design
parsing
lr-parser
made-easy-test-series
+
–
0
votes
1
answer
615
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
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
358
views
Zeal
asked
Dec 16, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
1
answer
616
Parsing
Can anybody enumerate the similarities and dissimilarities between LL, SLR, LALR and LR parsers.
Can anybody enumerate the similarities and dissimilarities between LL, SLR, LALR and LR parsers.
Zeal
422
views
Zeal
asked
Dec 15, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
1
answer
617
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→ b. , {a}
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...
srestha
1.6k
views
srestha
asked
Dec 15, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
votes
2
answers
618
Compiler
Consider the following grammer S→ bAd /bBe A→a B→a The above grammer is ________________ 1) SLR(1) 2) LALR(1) but not SLR(1) 3) CLR(1) but not LALR(1) d) Not LR(1)
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
448
views
srestha
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
+
–
1
votes
3
answers
619
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
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
2.5k
views
srestha
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
2
answers
620
CLR
S'→S S→A/B A→fAi/n B→fBii/d For the above augmented grammer , the number of states in LR(1) parser are_______________
S'→SS→A/BA→fAi/nB→fBii/dFor the above augmented grammer , the number of states in LR(1) parser are_______________
srestha
561
views
srestha
asked
Dec 14, 2015
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
+
–
3
votes
1
answer
621
LL(*) grammar
give example for LL(*) grammar
give example for LL(*) grammar
Pooja Palod
348
views
Pooja Palod
asked
Dec 10, 2015
Compiler Design
compiler-design
parsing
+
–
25
votes
5
answers
622
TIFR CSE 2015 | Part B | Question: 15
Consider the following grammar (the start symbol is $E$) for generating expressions. $E \rightarrow T - E \mid T + E \mid T$ $T \rightarrow T * F \mid F$ $F \rightarrow 0 \mid1\mid 2\mid 3\mid 4\mid 5\mid 6\mid 7\mid 8\mid 9$ With respect to this grammar, which of the following trees is the valid evaluation tree for the expression $2*3*4 - 5*6+7$?
Consider the following grammar (the start symbol is $E$) for generating expressions.$E \rightarrow T - E \mid T + E \mid T$$T \rightarrow T * F \mid F$$F \rightarrow 0 \m...
makhdoom ghaya
3.1k
views
makhdoom ghaya
asked
Dec 8, 2015
Compiler Design
tifr2015
parsing
expression-evaluation
+
–
2
votes
1
answer
623
what is the difference between lookahead symbol and follow of a non-terminal ?
radha gogia
2.4k
views
radha gogia
asked
Dec 7, 2015
Compiler Design
compiler-design
parsing
first-and-follow
+
–
1
votes
1
answer
624
what is the lookahead symbol in LL(1) grammar ?
Top down parsers parse LL(K) grammar ,Now if we talk about recursive descent parsers they just scan each input symbol and then perform their respective function calls ,or even LL(1) parsers also see the input symbol and accordingly chose the ... then push the symbols onto stack so then where do they see the look-ahead symbols, I am not getting this .
Top down parsers parse LL(K) grammar ,Now if we talk about recursive descent parsers they just scan each input symbol and then perform their respective function calls ,or...
radha gogia
4.3k
views
radha gogia
asked
Dec 6, 2015
Compiler Design
compiler-design
parsing
ll-parser
+
–
3
votes
1
answer
625
Is there any difference between derivation tree and parse tree ?
I have gone through this link and found that both are synonyms to each other but I am not getting that when we have more than one parse tree for a string so do we say that the grammar is ambiguous ... right-most derivation tree . http://stackoverflow.com/questions/5729961/any-differences-between-terms-parse-trees-and-derivation-trees
I have gone through this link and found that both are synonyms to each other but I am not getting that when we have more than one parse tree for a string so do we say tha...
radha gogia
2.5k
views
radha gogia
asked
Dec 6, 2015
Compiler Design
compiler-design
parsing
+
–
11
votes
2
answers
626
LL(1) expressive power
Does there exist LL(1) grammar for every Regular Language ? OR For Every Regular Language there exist atleast one LL(1) Grammar . True /False
Does there exist LL(1) grammar for every Regular Language ? ORFor Every Regular Language there exist atleast one LL(1) Grammar . True /False
Himanshu1
3.1k
views
Himanshu1
asked
Dec 5, 2015
Compiler Design
compiler-design
parsing
theory-of-computation
regular-language
+
–
5
votes
3
answers
627
LL(1)
Consider the grammar $S \to AaAb \mid BbBa$ $A \to \epsilon$ $B \to \epsilon$ This grammar is LL(1)- True or false
Consider the grammar $S \to AaAb \mid BbBa$ $A \to \epsilon$$B \to \epsilon$ This grammar is LL(1)- True or false
Soumyashree
37.5k
views
Soumyashree
asked
Dec 4, 2015
Compiler Design
parsing
+
–
1
votes
5
answers
628
When LALR(1) is constructed form CLR(1) does not contain any shift reduce conflicts?
Soumyashree
6.9k
views
Soumyashree
asked
Dec 4, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
4
votes
1
answer
629
Identify the type of Grammar ?
Identify the type of the grammar and give justification S $\rightarrow$ XYc X $\rightarrow$ Yb | a Y $\rightarrow$ c | $\epsilon$ SLR(1) Not SLR(1) LR(1) LALR(1) Someone please explain me it with state diagram . I'm confused with $\epsilon$ in the I0 Closure
Identify the type of the grammar and give justificationS $\rightarrow$ XYcX $\rightarrow$ Yb | aY $\rightarrow$ c | $\epsilon$ SLR(1)Not SLR(1)LR(1)LALR(1)Someone please ...
pC
572
views
pC
asked
Nov 20, 2015
Compiler Design
parsing
+
–
3
votes
2
answers
630
What happens if LALR(1) machine is constructed for the below grammer ? Justify Each Option
Grammar S $\rightarrow$ S1 S1 $\rightarrow$ S1 = S1 | a Where = is the assignment operator in C LALR(1) Machine cannot be constructed with this grammer inadequate states can be resolved using the ... associative inadequate states can be resolved using the fact that the = is right associative Both 2 and 3
Grammar S $\rightarrow$ S1S1 $\rightarrow$ S1 = S1 | aWhere = is the assignment operator in CLALR(1) Machine cannot be constructed with this grammerinadequate states can ...
pC
663
views
pC
asked
Nov 20, 2015
Compiler Design
parsing
compiler-design
+
–
Page:
« prev
1
...
16
17
18
19
20
21
22
23
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register