Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Slides
Recent questions tagged parsing
1
votes
1
answer
331
LALR(1)
S-> L=R|R L->*R|id R->L can someone draw the states with lookaheads? i am always getting confused on what should be the lookahead along with the grammar and how to find if there it is LALR(1) or not
S- L=R|RL->*R|idR->Lcan someone draw the states with lookaheads?i am always getting confused on what should be the lookahead along with the grammarand how to find if ther...
A_i_$_h
4.9k
views
A_i_$_h
asked
Nov 8, 2017
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
0
votes
2
answers
332
Bottom up parsing SDT
Rajesh R
1.5k
views
Rajesh R
asked
Nov 6, 2017
Compiler Design
compiler-design
parsing
test-series
+
–
2
votes
1
answer
333
virtual gate
Choose the correct answer for following grammar S → Aa | bAc | Bc | bBa A → d B → d (A) It is LL(1), LALR(1), and CLR(1) (B) LR(0), LALR(1), and CLR(1), but not SLR(1) (C) It is CLR(1), but not LL(1), LR(0), SLR(1), LALR(1) (D) It is LALR(1), and CLR(1)
Choose the correct answer for following grammarS → Aa | bAc | Bc | bBaA → dB → d(A) It is LL(1), LALR(1), and CLR(1)(B) LR(0), LALR(1), and CLR(1), but not SLR(1)(C...
Kuldeep Pal
7.2k
views
Kuldeep Pal
asked
Nov 5, 2017
Compiler Design
parsing
virtual-gate-test-series
+
–
1
votes
1
answer
334
Ace test series
Kuldeep Pal
435
views
Kuldeep Pal
asked
Nov 5, 2017
Compiler Design
compiler-design
parsing
lr-parser
ace-test-series
+
–
1
votes
1
answer
335
parser
1)shift e 2)reduce the configuration 3)sr conflict 4)rr conflict Ques 2 In LL(1) parsing algorithm let X is the topmost symbol of the stack and "a" is a lookahaed symbol then which condition will require to operate only pop on stack 1)X=a=$ 2)X=a <>$ 3)X<>a<>$ 4)none
1)shift e2)reduce the configuration3)sr conflict4)rr conflictQues 2 In LL(1) parsing algorithm let X is the topmost symbol of the stack and "a" is a lookahaed symbol the...
set2018
1.1k
views
set2018
asked
Nov 3, 2017
Compiler Design
parsing
compiler-design
test-series
+
–
3
votes
1
answer
336
parser
consider the following statements: S1:SLR parsing table have more number of state then LALR parsing table S2:it is economical to construct SLR and LALR table than CLR parsing table . Which one is true?
consider the following statements:S1:SLR parsing table have more number of state then LALR parsing tableS2:it is economical to construct SLR and LALR table than CLR parsi...
set2018
6.0k
views
set2018
asked
Nov 3, 2017
Compiler Design
compiler-design
parsing
+
–
2
votes
2
answers
337
parsing
what is the output produced for the input "abdbdc" using bottom up and top down parsing ?
what is the output produced for the input "abdbdc" using bottom up and top down parsing ?
set2018
510
views
set2018
asked
Nov 2, 2017
Compiler Design
parsing
compiler-design
test-series
+
–
1
votes
0
answers
338
MadeEasy Subject Test: Compiler Design - Parsing
The given answer is 5,i am getting 6 16 in CLR and 10 in LALR.Please someone confirm?
The given answer is 5,i am getting 616 in CLR and 10 in LALR.Please someone confirm?
rahul sharma 5
596
views
rahul sharma 5
asked
Oct 29, 2017
Compiler Design
compiler-design
made-easy-test-series
parsing
+
–
2
votes
1
answer
339
SLR(1) or Not
Whether followingis SLR(1) or Not ? E->E+T/T T->TF/F F->F*/a/b Doubt : While making state you will get one state as I1(E'->E. & E->E.+T ) , is this shift reduce or not ? if not then while making parsing table for LR(0) what will you put in I1 state .... ( All Shift/Reduce Entry as Accept or not) ?
Whether followingis SLR(1) or Not ?E->E+T/TT->TF/FF->F*/a/bDoubt : While making state you will get one state as I1(E'->E. & E->E.+T ) , is this shift reduce or not ?if no...
Anup patel
1.1k
views
Anup patel
asked
Oct 22, 2017
Compiler Design
compiler-design
parsing
+
–
1
votes
1
answer
340
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
+
–
2
votes
3
answers
341
grammar
Trailing symbols of E E -> E + T | T T -> T * F | F F -> (E) | id
Trailing symbols of EE - E + T | TT - T * F | FF - (E) | id
A_i_$_h
1.1k
views
A_i_$_h
asked
Oct 20, 2017
Compiler Design
compiler-design
parsing
first-and-follow
+
–
1
votes
1
answer
342
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
2
answers
343
first and follow
first and follow of S->ABC A->0A1 / epsilon B->1B / epsilon C->1C0 / epsilon
first and follow ofS->ABCA->0A1 / epsilonB->1B / epsilonC->1C0 / epsilon
A_i_$_h
1.9k
views
A_i_$_h
asked
Oct 20, 2017
Compiler Design
compiler-design
parsing
first-and-follow
+
–
2
votes
2
answers
344
eliminate left recurrsion
Eliminate left recurrsion from $S\rightarrow S0S1S | 01$
Eliminate left recurrsion from $S\rightarrow S0S1S | 01$
A_i_$_h
913
views
A_i_$_h
asked
Oct 20, 2017
Compiler Design
compiler-design
parsing
left-recursion
+
–
0
votes
2
answers
345
[Compiler Design] Ambiguity
The productions E -> E+E | E-E | E*E | id a:) generates inherently ambiguous languages b:) generates and ambiguous language c:) is an ambiguous grammer d) none of these
The productionsE - E+E | E-E | E*E | ida:) generates inherently ambiguous languagesb:) generates and ambiguous languagec:) is an ambiguous grammerd) none of these
rahul sharma 5
8.5k
views
rahul sharma 5
asked
Oct 17, 2017
Compiler Design
compiler-design
parsing
ambiguous-grammar
+
–
1
votes
2
answers
346
Number of derivation trees
`How many derivation trees are there to derive string"te" from below grammer:- G->ATE | g | $\epsilon$ A->TE | a | $\epsilon$ T-> t | $\epsilon$ E-> e | $\epsilon$
How many derivation trees are there to derive string"te" from below grammer:-G->ATE | g | $\epsilon$A->TE | a | $\epsilon$T- t | $\epsilon$E- e | $\epsilon$
rahul sharma 5
1.6k
views
rahul sharma 5
asked
Oct 14, 2017
Compiler Design
compiler-design
grammar
parsing
+
–
2
votes
0
answers
347
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
348
Compiler design: Number of rows in parsing table
Consider the following augmented grammar G which is used to build LR (0) parsing table. E' __> E E __> E+T/T T __> T*F/F F -->(E)/id How many rows are there in the parsing rable ? a)11 b)12 c)13 d)14
Consider the following augmented grammar G which is used to build LR (0) parsing table.E' __ EE __ E+T/TT __ T*F/FF >(E)/idHow many rows are there in the parsing rable ?...
rahul sharma 5
1.3k
views
rahul sharma 5
asked
Oct 14, 2017
Compiler Design
compiler-design
parsing
+
–
2
votes
1
answer
349
self doubt
IS IT NECESSARY TO REMOVE LEFT RECURSION FOR FINDING FIRST AND FOLLOW ??
IS IT NECESSARY TO REMOVE LEFT RECURSION FOR FINDING FIRST AND FOLLOW ??
Venkat Sai
649
views
Venkat Sai
asked
Oct 9, 2017
Compiler Design
parsing
+
–
2
votes
1
answer
350
# Parsing
What are the differences between strong LL(k) parsing and LL(k) parsing?
What are the differences between strong LL(k) parsing and LL(k) parsing?
Kaifi7
282
views
Kaifi7
asked
Oct 7, 2017
Compiler Design
compiler-design
parsing
+
–
2
votes
1
answer
351
#Parsing
How to check in the grammar that which parsing method works more efficient for it? For eg in the following grammar - S-> Aa/b S->a Options - a) Top - Down b) Bottom - up c) Both d) None of these Answer is b.
How to check in the grammar that which parsing method works more efficient for it?For eg in the following grammar -S- Aa/bS->aOptions -a) Top - Downb) Bottom - upc) Bothd...
Kaifi7
602
views
Kaifi7
asked
Oct 7, 2017
Compiler Design
compiler-design
grammar
parsing
+
–
1
votes
0
answers
352
self doubt
can anyone tell me the difference between LL(k) and LR(K) Grammers and can we use k look aheads at once ?? in CLR(1) Parser which is most powerful we use just one lookahead does lookaheads increase power???
can anyone tell me the difference between LL(k) and LR(K) Grammers and can we use k look aheads at once ?? in CLR(1) Parser which is most powerful we use just one lookahe...
Venkat Sai
209
views
Venkat Sai
asked
Oct 7, 2017
Compiler Design
parsing
+
–
2
votes
2
answers
353
MadeEasy Subject Test: Compiler Design - Parsing
EXPLAIN...
EXPLAIN...
rajoramanoj
499
views
rajoramanoj
asked
Oct 6, 2017
Compiler Design
made-easy-test-series
compiler-design
first-and-follow
parsing
+
–
3
votes
1
answer
354
LL Grammar: how does look ahead affect left recursion and left factoring
lets consider a grammar as: $A\rightarrow Ab | Ac | a$ while checking whether it belongs to LL(1) grammar, we would point out that it has a left recursion as well as left factoring. I was wondering that what ... symbol, A to decide the production rule to be applied. any further insights about the same will be very helpful.
lets consider a grammar as:$A\rightarrow Ab | Ac | a$while checking whether it belongs to LL(1) grammar, we would point out that it has a left recursion as well as left f...
AskHerOut
1.7k
views
AskHerOut
asked
Oct 1, 2017
Compiler Design
compiler-design
parsing
grammar
ll-parser
+
–
0
votes
1
answer
355
Parsing_LR(1)Items
saxena0612
429
views
saxena0612
asked
Sep 29, 2017
Compiler Design
parsing
ace-test-series
+
–
0
votes
0
answers
356
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
443
views
Aibi
asked
Sep 22, 2017
Compiler Design
compiler-design
parsing
lr-parser
made-easy-test-series
+
–
0
votes
1
answer
357
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
736
views
Aibi
asked
Sep 22, 2017
Compiler Design
compiler-design
ace-test-series
parsing
lr-parser
+
–
1
votes
2
answers
358
parsing
S---->AaAb /BbBa A---->epsilon B------->epsilon check whether grammar is LL(1),LR(0) OR SLR(1)
S >AaAb /BbBaA >epsilonB ->epsiloncheck whether grammar is LL(1),LR(0) OR SLR(1)
set2018
3.0k
views
set2018
asked
Sep 17, 2017
Compiler Design
parsing
compiler-design
+
–
1
votes
2
answers
359
left recursion
Parshu gate
1.2k
views
Parshu gate
asked
Sep 17, 2017
Theory of Computation
compiler-design
left-recursion
grammar
parsing
+
–
1
votes
0
answers
360
UGC NET CSE | December 2009 | Part 2 | Question: 33
A shift-reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of the grammar. S --> x x W [ print “1”] S --> y [print “2”] W --> S2 [print “3”], what is the translation of “x x x x y z z” ? (A) 1 1 2 3 1 (B) 1 1 2 3 3 (C) 2 3 1 3 1 (D) 2 3 3 2 1
A shift-reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of the grammar.S x x W [ print “1”]S ...
rishu_darkshadow
2.0k
views
rishu_darkshadow
asked
Sep 17, 2017
Compiler Design
ugcnetcse-dec2009-paper2
compiler-design
parsing
+
–
Page:
« prev
1
...
7
8
9
10
11
12
13
14
15
16
17
...
23
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register