Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Compiler Design:
Recent questions tagged compiler-design
0
votes
1
answer
541
Recursive Descent Parser
Does RDP require back tracking ? I am asking this because I have read that if RDP doesn't require back tracking then it is a predictive parser(LL(1))!! A predictive parser is a recursive descent parser that does not require backtracking. ... the class of LL(k) grammars ( https://en.wikipedia.org/wiki/Recursive_descent_parser ) Does it mean that the RDP requires BT
Does RDP require back tracking ?I am asking this because I have read that if RDP doesn't require back tracking then it is a predictive parser(LL(1))!! A predictive parser...
Nandkishor3939
1.2k
views
Nandkishor3939
asked
Jan 24, 2019
Compiler Design
compiler-design
parsing
+
–
0
votes
1
answer
542
ACE Test series Question on CFG
Shankar Kakde
659
views
Shankar Kakde
asked
Jan 24, 2019
Compiler Design
compiler-design
grammar
context-free-grammar
ace-test-series
+
–
0
votes
1
answer
543
ace-Pregate
naveen bhatt
459
views
naveen bhatt
asked
Jan 24, 2019
Compiler Design
compiler-design
grammar
syntax-directed-translation
ace-test-series
+
–
0
votes
1
answer
544
Ace Test Series: Compiler Design - Left Recursion Elimination
Shankar Kakde
1.6k
views
Shankar Kakde
asked
Jan 23, 2019
Compiler Design
ace-test-series
compiler-design
context-free-grammar
parsing
left-recursion
+
–
0
votes
1
answer
545
static single assignment
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
minal
947
views
minal
asked
Jan 22, 2019
Compiler Design
compiler-design
intermediate-code
three-address-code
static-single-assignment
numerical-answers
+
–
1
votes
0
answers
546
Ace Test Series: Compiler - Parser Conflicts
Consider the following CFG. S → aSa|bSb|a|b Number of conflicts in LR(0) State Diagram? 2 8 10 4
Consider the following CFG.S → aSa|bSb|a|bNumber of conflicts in LR(0) State Diagram?28104
Na462
1.0k
views
Na462
asked
Jan 21, 2019
Compiler Design
compiler-design
lr-parser
ace-test-series
+
–
2
votes
3
answers
547
Self doubt
How many tokens in this a>>=1; and a! , Will >>= and a! be treated as a single token ?
How many tokens in thisa>>=1;and a! , Will >>= and a! be treated as a single token ?
kman30
1.8k
views
kman30
asked
Jan 21, 2019
Compiler Design
compiler-design
lexical-analysis
+
–
1
votes
4
answers
548
clr(1) parser
grammar is CLR(1) or not? if yes then how?
grammar is CLR(1) or not?if yes then how?
Rahul_Rathod_
3.6k
views
Rahul_Rathod_
asked
Jan 21, 2019
Compiler Design
compiler-design
lr-parser
parsing
made-easy-test-series
+
–
0
votes
3
answers
549
compiler phase error
int main(){ int a = 10; fun(a); } void fun(int a){ printf(“%d”,a); } Which phase of the compiler will raise an error? Lexical syntax semantics none of the above
int main(){int a = 10;fun(a);}void fun(int a){printf(“%d”,a);}Which phase of the compiler will raise an error?Lexical syntaxsemanticsnone of the above
OneZero
994
views
OneZero
asked
Jan 21, 2019
Compiler Design
compiler-design
programming-in-c
+
–
0
votes
1
answer
550
Parsing LALR
If LALR(1) parser have shift reduce conflict then CLR(1) parser must have shift reduce conflict, why?
If LALR(1) parser have shift reduce conflict then CLR(1) parser must have shift reduce conflict, why?
Badayayash
1.6k
views
Badayayash
asked
Jan 20, 2019
Compiler Design
compiler-design
lr-parser
+
–
1
votes
1
answer
551
ME TEST Series question ON CFG
Shankar Kakde
288
views
Shankar Kakde
asked
Jan 19, 2019
Compiler Design
compiler-design
context-free-grammar
parsing
made-easy-test-series
+
–
0
votes
2
answers
552
Compiler Design
Type of ERROR
Type of ERROR
balchandar reddy san
1.0k
views
balchandar reddy san
asked
Jan 19, 2019
Compiler Design
compiler-design
lexical-analysis
test-series
+
–
0
votes
2
answers
553
Testbook Test Series: Compiler Design - Syntax Directed Translation
Suryank Tiwari
501
views
Suryank Tiwari
asked
Jan 19, 2019
Compiler Design
compiler-design
syntax-directed-translation
testbook-test-series
+
–
2
votes
0
answers
554
LALR(1) Parser
Which one of the following is true about LALR(1) Parser ? It can resolve SR Conflict in favor of reduced It can resolve SR Conflict in favor of Shift It can resolve RR Conflict in favor of reduced It can resolve RR Conflict in favor of shift
Which one of the following is true about LALR(1) Parser ?It can resolve SR Conflict in favor of reducedIt can resolve SR Conflict in favor of ShiftIt can resolve RR Confl...
Na462
917
views
Na462
asked
Jan 19, 2019
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
votes
0
answers
555
Made Easy Single Subject Test
A grammar that has no epsilon productions and also free from unit productions. The maximum number of reduce moves that can be taken during bottom-up evaluation of 25 token string by performing bottom-up parsers is _______
A grammar that has no epsilon productions and also free from unit productions. The maximum number of reduce moves that can be taken during bottom-up evaluation of 25 toke...
balchandar reddy san
444
views
balchandar reddy san
asked
Jan 17, 2019
Compiler Design
compiler-design
+
–
1
votes
1
answer
556
conflicts in parser
does augmented production causes conflicts
does augmented production causes conflicts
baghel263
1.0k
views
baghel263
asked
Jan 17, 2019
Compiler Design
compiler-design
parsing
lr-parser
+
–
1
votes
3
answers
557
MadeEasy Subject Test 2019: Compiler Design - Parsing
Shankar Kakde
773
views
Shankar Kakde
asked
Jan 16, 2019
Compiler Design
compiler-design
parsing
made-easy-test-series
+
–
1
votes
1
answer
558
Applied Course | Mock GATE | Test 1 | Question: 16
Which phase of the compiler generates parse tree? Lexical analyzer Semantic analyzer Syntax analyzer None of them.
Which phase of the compiler generates parse tree?Lexical analyzerSemantic analyzerSyntax analyzerNone of them.
Applied Course
514
views
Applied Course
asked
Jan 16, 2019
Compiler Design
applied-course-2019-mock1
compiler-design
parsing
+
–
1
votes
1
answer
559
Applied Course | Mock GATE | Test 1 | Question: 60
The left-factoring of the given CFG is $S \rightarrow aBcD \mid aBD \mid daB \mid d$ $B \rightarrow b$ $D \rightarrow d$ $S \rightarrow aBB' \mid d$ $B' \rightarrow cD \mid D$ $B \rightarrow b$ $D \rightarrow d$ ... $B' \rightarrow aB$ $B \rightarrow b$ $D \rightarrow d$ None of them
The left-factoring of the given CFG is$S \rightarrow aBcD \mid aBD \mid daB \mid d$$B \rightarrow b$$D \rightarrow d$$S \rightarrow aBB' \mid d$$B' \rightarrow cD \mid D$...
Applied Course
658
views
Applied Course
asked
Jan 16, 2019
Compiler Design
applied-course-2019-mock1
compiler-design
context-free-grammar
left-recursion
+
–
0
votes
1
answer
560
compiler design Lexical Errors (Applied Gate mock -3 )
Which of the following error will not come under Lexical error (Compiler Design - 1Mark) Spelling error Exceeding length of an identifier or numeric constants Appearance of illegal characters Missing semicolon A. I only B. II only C. III ... whiel, instead of keyword it would be recognized as variable ... Can any one explain what is true...
Which of the following error will not come under Lexical error (Compiler Design - 1Mark)Spelling errorExceeding length of an identifier or numeric constantsAppearance of ...
Prasad Budithi
4.0k
views
Prasad Budithi
asked
Jan 16, 2019
Compiler Design
compiler-design
lexical-analysis
applied-gate-test-series
+
–
0
votes
1
answer
561
MadeEasy Subject Test 2019: Compiler Design - Parsing
Which of the Statements are True : S1: LR(1) grammar can be LR(0) but not LL(1). S2 : Every regular language is LL(1) S3 : Three address code is linear representation of Syntax Tree.
Which of the Statements are True :S1: LR(1) grammar can be LR(0) but not LL(1).S2 : Every regular language is LL(1)S3 : Three address code is linear representation of Syn...
Na462
793
views
Na462
asked
Jan 16, 2019
Compiler Design
parsing
compiler-design
made-easy-test-series
+
–
1
votes
3
answers
562
gate academy, all india mock test 2019
manvee
695
views
manvee
asked
Jan 15, 2019
Compiler Design
compiler-design
viable-prefix
gate-academy-test-series
+
–
0
votes
0
answers
563
NPTEL_notes
Consider the expression : ((a ∗ (b ∗ c)) ∗ (d + (e + f ))) + ((g + (h + i )) + (j ∗ (k ∗ l))) what is the minimum number of register required to evaluate this expression if intermediate results are not stored in memory? Using ... tree? When to use sethi-ullman algorithm and when not? Is it a feasible option to find the minimum number of register required to evaluate three address code?
Consider the expression : ((a ∗ (b ∗ c)) ∗ (d + (e + f ))) + ((g + (h + i )) + (j ∗ (k ∗ l)))what is the minimum number of register required to evaluate this ex...
Shivam Kasat
530
views
Shivam Kasat
asked
Jan 14, 2019
Compiler Design
compiler-design
nptel
+
–
2
votes
2
answers
564
UPPCL AE 2018:70
Consider the following grammar $\text{G:}$ $\text{P} \rightarrow \text{Q + R} \mid \text{Q - R} \mid \text{Q} \mid \text{R}$ $\text{Q} \rightarrow q \mid r$ $\text{R} \rightarrow r \mid s$ where $\text{P, Q,}$ and $\text{R}$ ... grammar $\text{G}$ Neither $\text{S1}$ nor $\text{S2}$ Only $\text{S1}$ Only $\text{S2}$ Both $\text{S1}$ and $\text{S2}$
Consider the following grammar $\text{G:}$$\text{P} \rightarrow \text{Q + R} \mid \text{Q – R} \mid \text{Q} \mid \text{R}$$\text{Q} \rightarrow q \mid r$$\text{R} \rig...
gate_forum
824
views
gate_forum
asked
Jan 13, 2019
Compiler Design
uppcl2018
compiler-design
parsing
ll-parser
+
–
1
votes
1
answer
565
MadeEasy Subject Test 2019: Compiler Design - Syntax Directed Translation
Consider the following Translation rules for the Grammar G : What will be the output for input string abebebe for bottom up parser ? CBBPBPBP CBBBPPBB CBPBPBPB CBPBBPPB
Consider the following Translation rules for the Grammar G :What will be the output for input string abebebe for bottom up parser ?CBBPBPBPCBBBPPBBCBPBPBPBCBPBBPPB
Na462
1.3k
views
Na462
asked
Jan 13, 2019
Compiler Design
compiler-design
syntax-directed-translation
made-easy-test-series
+
–
0
votes
0
answers
566
Compilers Doubt
Suppose Grammars given:- S→ Bbb B→ epsilon If we do SLR(1) parsing on the above grammar. Then the first state would have shift-reduce conflict right?? Because B→ epsilon would be same as B→ . right? Please make this clear.
Suppose Grammars given:-S→ BbbB→ epsilonIf we do SLR(1) parsing on the above grammar. Then the first state would have shift-reduce conflict right??Because B→ epsilo...
Shamim Ahmed
452
views
Shamim Ahmed
asked
Jan 13, 2019
Compiler Design
compiler-design
+
–
0
votes
2
answers
567
Intermediate code representation
Answer is 6,6 Can anybody explain how?
Answer is 6,6Can anybody explain how?
bts1jimin
578
views
bts1jimin
asked
Jan 12, 2019
Compiler Design
compiler-design
intermediate-code
test-series
+
–
0
votes
1
answer
568
me test
Consider the basic block given below: u=u+v v=v+w x=v-w y=v-x z=u+v The minimum number of nodes and edges present in the DAG representations of the above basic block respectively are:
Consider the basic block given below:u=u+vv=v+wx=v-wy=v-xz=u+vThe minimum number of nodes and edges present in the DAG representations of the above basic block respective...
newdreamz a1-z0
1.3k
views
newdreamz a1-z0
asked
Jan 12, 2019
Compiler Design
compiler-design
code-optimization
directed-acyclic-graph
numerical-answers
+
–
1
votes
0
answers
569
MadeEasy Full Length Test 2019: Compiler Design - Parsing
Sambhrant Maurya
648
views
Sambhrant Maurya
asked
Jan 11, 2019
Compiler Design
compiler-design
parsing
made-easy-test-series
+
–
3
votes
1
answer
570
MadeEasy Subject Test 2019: Compiler Design - Parsing
Consider the following grammar: S-->XX X-->b X-->aX Which of the following can be the viable prefixes? baab aab aaabab bbbaX
Consider the following grammar:S >XXX >bX >aXWhich of the following can be the viable prefixes?baabaabaaababbbbaX
Sambhrant Maurya
2.4k
views
Sambhrant Maurya
asked
Jan 11, 2019
Compiler Design
compiler-design
viable-prefix
parsing
made-easy-test-series
+
–
Page:
« prev
1
...
14
15
16
17
18
19
20
21
22
23
24
...
68
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register