Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged lr-parser
1
1 vote
5
5 answers
2.7k
2.7k views
LL(1)
Every LL(1) grammar is ______A.SLR(1)B.LALR(1)C.LR(1)D.Both B & C
syncronizing
2.7k
views
asked
Sep 22, 2018
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
+
–
0
0 votes
0
0 answers
375
375 views
Doubt
Is LR(0) grammar can generate same languages as LR(1) grammar can generate?
soumayan bandhu
375
views
asked
Sep 16, 2018
Compiler Design
compiler-design
lr-parser
+
–
0
0 votes
1
1 answer
578
578 views
LR(k) grammar doubt
Do every LR(1) grammar have DPDA?
aditi19
578
views
asked
Sep 11, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
1
1 answer
585
585 views
parser
Consider a Context Free Grammar GI - if G is not Suitable for Top Down Parser then it is also not suitable for LR parsers Family.II - if G is not Suitable for Top Dow...
Lone Wolf
585
views
asked
Aug 12, 2018
Compiler Design
compiler-design
context-free-grammar
parsing
lr-parser
+
–
0
0 votes
2
2 answers
668
668 views
Compiler design
8:14 AM37\%Deepali bansal's doubt7 hrsJaipurCompiler DesignCS \& IT EnggWhere €,; IF THEN and all capital letters are terminal and stmt, ifstmt, whilestmt and bexpr are n...
Deepalitrapti
668
views
asked
Jul 19, 2018
Compiler Design
compiler-design
parsing
lr-parser
ambiguous
ll-parser
test-series
+
–
0
0 votes
0
0 answers
1.1k
1.1k views
Principles of Compiler Design 6.2
$E \rightarrow E + T \hspace{5px} | \hspace{5px} T$$T \rightarrow TF \hspace{5px} | \hspace{5px} F $$F \rightarrow F^{*} \hspace{5px} | \hspace{5px} (E) \hspace{5px} | \...
Mk Utkarsh
1.1k
views
asked
Jun 29, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
1
1 answer
418
418 views
compiler design
How many states are there in CLR parsing table for the given grammar? $\qquad$\[\mathrm{S} \rightarrow \mathrm{~S} \mathrm{~S}+\left|\mathrm{S} \mathrm{~S}^{*}\right| \ma...
Shivani gaikawad
418
views
asked
Jun 3, 2018
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
test-series
+
–
0
0 votes
1
1 answer
426
426 views
compiler design
The given grammar is:\[\mathrm{G}=\{(\mathrm{S}),\{\mathrm{a}, \mathrm{~b}\},\{\mathrm{S} \rightarrow \mathrm{SaS}, \mathrm{~S} \rightarrow \mathrm{~b}\}, \mathrm{S}\}\]L...
Shivani gaikawad
426
views
asked
May 31, 2018
Compiler Design
compiler-design
grammar
parsing
lr-parser
test-series
+
–
2
2 votes
1
answers
1 answer
512
512 views
compiler
For the next 2 questions, consider the following grammar:\[\begin{array}{l}\mathrm{S} \rightarrow(\mathrm{~T} \\\mathrm{T} \rightarrow \mathrm{~S}) \mathrm{U} \\\mathrm{~...
Prince Sindhiya
512
views
asked
May 31, 2018
Compiler Design
compiler-design
grammar
parsing
lr-parser
test-series
+
–
0
0 votes
1
1 answer
581
581 views
compiler design
Consider the grammar\[\begin{array}{l}\mathrm{S} \rightarrow \mathrm{AS} \mid \mathrm{b} \\\mathrm{~A} \rightarrow \mathrm{SA} \mid \mathrm{a}\end{array}\]The grammar is ...
Prince Sindhiya
581
views
asked
May 31, 2018
Compiler Design
compiler-design
grammar
parsing
lr-parser
test-series
+
–
0
0 votes
1
1 answer
743
743 views
Compiler design
Q69. Form a CLR parsing DFA of the following Grammar:\[\mathrm{S} \rightarrow \mathrm{SS}+|\mathrm{SS} *|_{\mathrm{a}}\]Which of the following state is a valid state of t...
Shivani gaikawad
743
views
asked
May 30, 2018
Compiler Design
compiler-design
lr-parser
test-series
+
–
2
2 votes
2
2 answers
2.1k
2.1k views
Bottom up parsers
What is the difference between $SLR(1)$ and $LALR(1)$ parser ? Both parser have same parsing table then how $SLR$ is subset of $LALR$ ?
gate19
2.1k
views
asked
May 26, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
2
2 answers
653
653 views
SELF DOUBT
it is confirmed that every LL(1) is LR(1) i.e CLR(1),but i want to know that is every LL(1) grammar is also LALR????? becz LALR is subset of CLR(1).
eyeamgj
653
views
asked
May 16, 2018
Compiler Design
compiler-design
parsing
lr-parser
ll-parser
+
–
0
0 votes
1
1 answer
717
717 views
ugc net
Which of the following grammar is LR (1) ?(A) A a A b, A b A b, A a , A b(B) A a A a, A a A b, A c(C) A A + A, A a(D) Both (A) and (B)
shruti gupta1
717
views
asked
May 15, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
0
0 votes
1
1 answer
546
546 views
LR Parsers
#self_doubtWhile representing the canonical collection of LR(0) or LR(1) items why first augmented production is added in state diagram??
Naveen Kumar 3
546
views
asked
May 9, 2018
Compiler Design
lr-parser
+
–
0
0 votes
2
2 answers
1.0k
1.0k views
Compiler design semester exam question
Can the following grammar be parsed by LR(0) parser?E - E+id | idIs the accept state entry considered on all the terminal symbol columns for LR(0) parser?
Jayant Isswani
1.0k
views
asked
May 2, 2018
Compiler Design
compiler-design
lr-parser
parsing
+
–
1
1 vote
1
answers
1 answer
398
398 views
compiler
E >T+ET >ia)LR(0)b)SLRc)LALRdnone
satyam132
398
views
asked
Apr 21, 2018
Compiler Design
compiler-design
grammar
parsing
lr-parser
+
–
1
1 vote
1
1 answer
1.4k
1.4k views
LL(n)
LL(1) parser cannot accept nondeterministic grammar at we have only single lookahead and there can be no predictable parsing in this case. Suppose we have LL(n) and we a...
smsubham
1.4k
views
asked
Apr 4, 2018
Compiler Design
compiler-design
ll-parser
parsing
lr-parser
grammar
+
–
0
0 votes
3
answers
3 answers
4.2k
4.2k views
LR(0) Parsing Table
Please anyone create a $LR(0)$ Parsing table on this grammar and show the working of each step:$S' \rightarrow S$$S \rightarrow S$;$A \mid A$$A \rightarrow E \mid id := ...
rahuldb
4.2k
views
asked
Mar 17, 2018
Compiler Design
compiler-design
lr-parser
parsing
grammar
+
–
0
0 votes
1
1 answer
991
991 views
self doubt
Can we have a grammar $G$ which is $LL(1)$ but not $SLR(1)$ ,If so given example grammar
shivanisrivarshini
991
views
asked
Mar 10, 2018
Compiler Design
compiler-design
parsing
ll-parser
lr-parser
descriptive
+
–
1
1 vote
1
1 answer
610
610 views
TEST_SERIES
ANSWER IS CORRECT BU I HAVE DOUBT IN A - .Ab, a/bI think it must be A - .Ab ,a
mehul vaidya
610
views
asked
Mar 10, 2018
Compiler Design
compiler-design
parsing
lr-parser
ace-test-series
+
–
0
0 votes
1
1 answer
680
680 views
Virtual Gate Test Series: Compiler Design - Parsers
Consider the grammar given$S\rightarrow AA$$A\rightarrow aA / b$How many entries will be blank in the GOTO table for SR(0) items?
Utsav09
680
views
asked
Jan 31, 2018
Compiler Design
compiler-design
parsing
lr-parser
virtual-gate-test-series
+
–
0
0 votes
0
0 answers
595
595 views
made easy test series
Consider the following grammar G:S->AB|dA->aA|bB->bB|c The grammar G isA LL (1) grammar and not LR (0)B LL (1) and LR (0)C Not LL (1) but LR (0) /*correct answer*/D Neith...
rohit vishkarma
595
views
asked
Jan 29, 2018
Compiler Design
ll-parser
lr-parser
+
–
1
1 vote
1
1 answer
4.2k
4.2k views
Comparing Parsers
The power of parsers is as follows:CLR(1) LALR(1) SLR(1) LR(0) LL(1)Can we say that if a language is not parsed by powerful parser then less powerful parsers can't pa...
Chiranjeevi Kanaka
4.2k
views
asked
Jan 25, 2018
Compiler Design
compiler-design
parsing
lr-parser
+
–
3
3 votes
1
1 answer
524
524 views
Self Doubt
If shift-reduce conflicts occur in LALR(1) parsers(like yacc,etc).Who gets the higher precedence?shift or reduce?
ankit_thawal
524
views
asked
Jan 22, 2018
Compiler Design
compiler-design
parsing
lr-parser
descriptive
+
–
2
2 votes
1
1 answer
1.7k
1.7k views
ACE Grand Test 2 ( Compiler Design)
Consider the grammar :$S\rightarrow SS+ | SS* | a$Which of the following is true:A) SLR(1) but not LL(1)B) LALR(1) but not SLR(1)C) LR(1) but not LALR(1)D) Neither LL(1)...
Deepak Shinde
1.7k
views
asked
Jan 20, 2018
Compiler Design
ace-test-series
compiler-design
parsing
lr-parser
+
–
4
4 votes
1
1 answer
1.5k
1.5k views
self doubt
If a grammar is LL(1) then it would be definitely CLR(1) i.e. LR(1) or LALR(1)
mohit kumar 5
1.5k
views
asked
Jan 18, 2018
Compiler Design
compiler-design
lr-parser
parsing
+
–
1
1 vote
1
1 answer
1.1k
1.1k views
Compiler Design - Parsing: Is LALR(1) made from the LR(0) or the LR(1) automaton?
According to my understanding, we LALR is constructed by reducing LR(1) automaton states. So I think it should be LR(1)However, we construct SLR(1) items from the LR(0) a...
vaibhav101
1.1k
views
asked
Jan 13, 2018
Compiler Design
compiler-design
lr-parser
parsing
+
–
3
3 votes
1
1 answer
908
908 views
Compile
Nitesh Choudhary
908
views
asked
Jan 8, 2018
Compiler Design
compiler-design
parsing
lr-parser
numerical-answers
made-easy-test-series
+
–
1
1 vote
0
0 answers
1.2k
1.2k views
Average length of stack in parsing LR(1)
Consider the following grammar:$S \rightarrow A$$S \rightarrow xb$$A \rightarrow aAb$$A \rightarrow B$$B \rightarrow x$The average length of the stack used while parsing ...
Shubhanshu
1.2k
views
asked
Jan 7, 2018
Compiler Design
compiler-design
made-easy-test-series
parsing
lr-parser
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
next »