Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Compiler Design:
Recent questions tagged compiler-design
1
votes
2
answers
1051
recursive descent parsers
Are recursive descent parsers with backtracking or without?
Are recursive descent parsers with backtracking or without?
gari
3.0k
views
gari
asked
Nov 19, 2017
Theory of Computation
compiler-design
parsing
+
–
0
votes
3
answers
1052
made easy
Q9-Consider the following grammar: S → aPbSQ | a Q → t | ε P → r The number of states will reduce when a LALR(1) parse is computed out of CLR(1) parser for the above grammar _____. made easy solution my solution please correct me if i wrong no of state is reduce =6?
Q9-Consider the following grammar:S → aPbSQ | aQ → t | εP → rThe number of states will reduce when a LALR(1) parse is computed out of CLR(1) parser for the above g...
ADITYA CHAURASIYA 5
804
views
ADITYA CHAURASIYA 5
asked
Nov 18, 2017
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
made-easy-test-series
+
–
0
votes
1
answer
1053
Inherited Language confusion
How is it opt C and not opt A ?
How is it opt C and not opt A ?
Parshu gate
596
views
Parshu gate
asked
Nov 18, 2017
Compiler Design
compiler-design
inherently-ambiguous
ace-test-series
+
–
0
votes
1
answer
1054
SR,RR conflicts
Parshu gate
4.6k
views
Parshu gate
asked
Nov 18, 2017
Compiler Design
compiler-design
parsing
ace-test-series
+
–
0
votes
1
answer
1055
Compiler
First {a} =? First{a, b} =? First{a, b, c} =? First {a, $} =? Where a, b, c are terminals.
First {a} =?First{a, b} =?First{a, b, c} =?First {a, $} =?Where a, b, c are terminals.
MayankSharma
345
views
MayankSharma
asked
Nov 18, 2017
Compiler Design
compiler-design
parsing
first-and-follow
descriptive
+
–
0
votes
1
answer
1056
Backtracking
Here , Number of backtracks are 3 or 4 ? I am getting 3 but given answer is 4. Please explain.
Here , Number of backtracks are 3 or 4 ? I am getting 3 but given answer is 4. Please explain.
ankitgupta.1729
400
views
ankitgupta.1729
asked
Nov 18, 2017
Compiler Design
compiler-design
parsing
numerical-answers
test-series
+
–
2
votes
0
answers
1057
Operator Precedence Parser
Can anyone explain why operator precedence parsing cannot handle unary minus,and what are the approach to handle it.
Can anyone explain why operator precedence parsing cannot handle unary minus,and what are the approach to handle it.
junaid ahmad
889
views
junaid ahmad
asked
Nov 16, 2017
Compiler Design
compiler-design
operator-grammar
+
–
0
votes
1
answer
1058
What is difference between syntax analysis and syntax direct translation
hem chandra joshi
573
views
hem chandra joshi
asked
Nov 15, 2017
Compiler Design
compiler-design
syntax-directed-translation
descriptive
+
–
3
votes
1
answer
1059
left recursive- self
Is operator precedence parser the only parser that accepts left recursive grammar?
Is operator precedence parser the only parser that accepts left recursive grammar?
A_i_$_h
932
views
A_i_$_h
asked
Nov 13, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
descriptive
+
–
8
votes
3
answers
1060
Finding type of Grammar LL(1), OR LR(0) , OR CLR(1) OR LALR(1)
Suppose we are given a grammar and asked to find the type of that grammar , what is the algorithm which needs to be followed for each of them? LL(1), OR LR(0) , OR CLR(1) OR LALR(1)
Suppose we are given a grammar and asked to find the type of that grammar , what is the algorithm which needs to be followed for each of them? LL(1), OR LR(0) , OR CLR(1...
Parshu gate
15.5k
views
Parshu gate
asked
Nov 13, 2017
Compiler Design
parsing
compiler-design
lr-parser
ll-parser
grammar
+
–
0
votes
0
answers
1061
Run time Enviornment
I am reading a local book on compilers. Author says that Memory required by data objects could be determined at compile time. if size is to be determined at runtime like giving number of element in array using user input than does above claim hold valid. I have doubt over his statement. Kindly comment.
I am reading a local book on compilers. Author says that Memory required by data objects could be determined at compile time. if size is to be determined at runtime like...
Chandan1990
226
views
Chandan1990
asked
Nov 12, 2017
Compiler Design
compiler-design
+
–
1
votes
1
answer
1062
Compiler design
Power of Predictive parser and recursive decent parser is same?
Power of Predictive parser and recursive decent parser is same?
rahul sharma 5
276
views
rahul sharma 5
asked
Nov 12, 2017
Compiler Design
compiler-design
parsing
+
–
0
votes
0
answers
1063
Compiler : LL(k) and LR(k) grammer
Can LL(k) and LR(k) gammer has null and unit productions?
Can LL(k) and LR(k) gammer has null and unit productions?
rahul sharma 5
1.1k
views
rahul sharma 5
asked
Nov 12, 2017
Compiler Design
compiler-design
grammar
ll-parser
lr-parser
+
–
4
votes
0
answers
1064
L attributed Definition
I read from Dragon Book that Syntax directed translation is used for type checking for instance where performing some reductions and other operation on the string or symbol we perform some additional operations. https://en.wikipedia.org/wiki/L- ... attributes definition I understand that but it could be Both because L attribute definition is both. Resolve my doubt !
I read from Dragon Book that Syntax directed translation is used for type checking for instance where performing some reductions and other operation on the string or symb...
saxena0612
4.4k
views
saxena0612
asked
Nov 12, 2017
Compiler Design
syntax-directed-translation
compiler-design
+
–
0
votes
0
answers
1065
Compiler Design Syllabus Query
Do we need to study Assembler in Compiler Design. It's just I saw questions on Assembler in GO book, but all those questions were from 90's. So, do we need to study Assembler in depth for 2018? Thank you!
Do we need to study Assembler in Compiler Design. It's just I saw questions on Assembler in GO book, but all those questions were from 90's. So, do we need to study Asse...
iarnav
306
views
iarnav
asked
Nov 12, 2017
Theory of Computation
compiler-design
+
–
2
votes
1
answer
1066
Intermediate Code Generation
Why do we use Three Address Code generally in intermediate Code Generation phase of compiler ?
Why do we use Three Address Code generally in intermediate Code Generation phase of compiler ?
ankitgupta.1729
993
views
ankitgupta.1729
asked
Nov 12, 2017
Compiler Design
compiler-design
compilation-phases
descriptive
+
–
1
votes
2
answers
1067
DAG Representation of the below grammar
Consider the following code segment. x = u – t; y = x * v; x = y + w; y = t – z; y = x * y;
Consider the following code segment.x = u – t;y = x * v;x = y + w;y = t – z;y = x * y;
techbrk3
1.5k
views
techbrk3
asked
Nov 11, 2017
Compiler Design
compiler-design
intermediate-code
directed-acyclic-graph
+
–
3
votes
1
answer
1068
Number of internal nodes in the DAG representation of the following expression are :
((a ∗ a) ∗ (a ∗ a)) ∗ ((a ∗ a) ∗ (a ∗ a)))
((a ∗ a) ∗ (a ∗ a)) ∗ ((a ∗ a) ∗ (a ∗ a)))
techbrk3
1.4k
views
techbrk3
asked
Nov 11, 2017
Compiler Design
compiler-design
intermediate-code
+
–
0
votes
2
answers
1069
no of inedequate states in Compiler design
For the below given grammar: S→-S S→S-a S→a The number of inadequate states (states which have conflicts) and number of shift reduce conflicts are _____ and _____ respectively.
For the below given grammar:S→-SS→S-aS→aThe number of inadequate states (states which have conflicts) and number of shift reduce conflicts are _____ and _____ respe...
Parshu gate
1.1k
views
Parshu gate
asked
Nov 10, 2017
Compiler Design
compiler-design
parsing
+
–
1
votes
2
answers
1070
Derivations
Let G be a CFG , l be the number of left most derivations , r be the number of right most derivations and p be the number of parse trees.Assume l , p , r are computed for a particular string . For a given CFG 'G' and given string 'w'. What is the relation between l , p and r a) l <=p<=r b)l=p=r c)l>=p<=r d)none
Let G be a CFG , l be the number of left most derivations , r be the number of right most derivations and p be the number of parse trees.Assume l , p , r are computed for...
A_i_$_h
2.0k
views
A_i_$_h
asked
Nov 10, 2017
Compiler Design
compiler-design
parsing
context-free-grammar
+
–
0
votes
1
answer
1071
SR parsing
Which of the following is true at any valid state in shift reduce parsing 1.viable prefixes appear only at the bottom of the stack and not inside 2.viable prefixes appear only at the top of the stack and not inside 3.Stack contains only a set of viable prefixes 4.Stack never contains viable prefixes
Which of the following is true at any valid state in shift reduce parsing1.viable prefixes appear only at the bottom of the stack and not inside2.viable prefixes appear o...
A_i_$_h
561
views
A_i_$_h
asked
Nov 10, 2017
Compiler Design
compiler-design
viable-prefix
+
–
1
votes
1
answer
1072
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
+
–
1
votes
1
answer
1073
PTCUL-01
Semantic error can be detected at: A. compile time B. Runtime C. Both D. None of these
Semantic error can be detected at:A. compile timeB. RuntimeC. BothD. None of these
rishu_darkshadow
2.0k
views
rishu_darkshadow
asked
Nov 8, 2017
Programming in C
ptcul-2017
semantic-error
programming-in-c
compiler-design
+
–
0
votes
1
answer
1074
runtime enviornment
arch
350
views
arch
asked
Nov 7, 2017
Compiler Design
compiler-design
runtime-environment
test-series
+
–
2
votes
1
answer
1075
operator grammer
someone please explain how to draw operator precedence table to solve this question.
someone please explain how to draw operator precedence table to solve this question.
arch
1.4k
views
arch
asked
Nov 7, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
test-series
+
–
0
votes
1
answer
1076
compiler syllabus
target code generation is in syllabus of gate 2018?
target code generation is in syllabus of gate 2018?
arch
418
views
arch
asked
Nov 6, 2017
Compiler Design
compiler-design
target-code-generation
descriptive
+
–
0
votes
2
answers
1077
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
1078
LR(1) DFA
Parshu gate
510
views
Parshu gate
asked
Nov 6, 2017
Compiler Design
lr-parser
compiler-design
test-series
+
–
1
votes
1
answer
1079
Ace test series
Kuldeep Pal
432
views
Kuldeep Pal
asked
Nov 5, 2017
Compiler Design
compiler-design
parsing
lr-parser
ace-test-series
+
–
1
votes
1
answer
1080
UGC NET CSE | November 2017 | Part 2 | Question: 35
Match the description of several parts of a classic optimizing compiler in $\textbf{List-I}$, with the names of those parts in $\textbf{List-II}$ ... $\text{(a)-(ii); (b)-(iv); (c)-(iii); (d)-(i)}$
Match the description of several parts of a classic optimizing compiler in $\textbf{List-I}$, with the names of those parts in $\textbf{List-II}$ :$\begin{array}{clcl} & ...
Arjun
1.2k
views
Arjun
asked
Nov 5, 2017
Compiler Design
ugcnetcse-nov2017-paper2
compiler-design
+
–
Page:
« prev
1
...
31
32
33
34
35
36
37
38
39
40
41
...
68
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register