Recent questions tagged compiler-design

2 votes
0 answers
991
0 votes
0 answers
992
The grammar$S\rightarrow FA$$A\rightarrow \epsilon |\Phi TA$$F\rightarrow i$reflects thata)$\Phi$ is left associativeb)$\Phi$ is right associativec)cannot deduce associat...
0 votes
1 answer
993
$E→E−T ∣ T$$T→T/F ∣ F$$F→(E) ∣ id$(E is the start symbol)This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
0 votes
1 answer
995
2 votes
3 answers
996
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 ...
0 votes
2 answers
997
2 votes
1 answer
1000
Consider the following table :$\begin{array}{|l|l|l|} \hline \textbf{A.} & \text{Activation record} & \textbf{p.} & \text{Linking loader} \\\hline \textbf{B.} & \text{Loc...
0 votes
1 answer
1002
Are code optimization concepts regarding basic blocks in gate syllabus 2018 or not?
0 votes
1 answer
1003
if any production of given grammar isA → ε {A.v = 0}then A.v is ?a) inherited attributeb) synthesized attribute
0 votes
0 answers
1005
what are the pros and cons in LL(k) parsing with larger values of k?
1 votes
1 answer
1006
What is the diffrence between Lexical error , Syntax error and semantic error..?Please explain with this examplevoid main(){int total-value, Num=2,sum=5,var1;5=Num;var1=2...
0 votes
1 answer
1007
0 votes
1 answer
1009
1 votes
1 answer
1010
A regular grammar is always linear but not all linear grammar are regular.Please explain why this statement is true
0 votes
1 answer
1012
Which of the following is not a function of pass1 of an assembler?1) Generate data 2) Keep track of LC 3) Remember literals 4) Remember values of symbols until pass 2
0 votes
2 answers
1017
0 votes
0 answers
1019