Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged left-recursion
0
0 votes
0
0 answers
565
565 views
Compiler Design | Elimination of Left Recursion
Eliminate left Recursion from the following Grammar: S->AB, A->BS|b, B->SA|a
Ashutosh_RS
565
views
asked
Mar 28, 2025
Compiler Design
compiler-design
left-recursion
parsing
context-free-grammar
+
–
0
0 votes
2
2 answers
759
759 views
COMPILER design
Is S->aS left recursive grammer?
Mudit Jain
759
views
asked
Dec 27, 2022
Compiler Design
left-recursion
+
–
0
0 votes
3
3 answers
6.3k
6.3k views
Remove left recusrion and find out first and follow
Compute the FIRST and FOLLOW for the postfix grammar after removing the left recursion:$ S → S S+/ S S* /a$
jayanth
6.3k
views
asked
Jun 16, 2022
Compiler Design
compiler-design
left-recursion
first-and-follow
+
–
0
0 votes
1
1 answer
2.4k
2.4k views
To get follow of grammar ,Should I remove left_recursion first?
S- SS | AaA->Sb | a(a) prove that the grammar is ambiguous.(b) find the follow for the grammar(c) then remove the left recursion from the grammar.
Sara Wageh
2.4k
views
asked
Dec 31, 2021
Compiler Design
left-recursion
+
–
4
4 votes
1
1 answer
2.1k
2.1k views
S->AA/ab A->Bd/null B->SB/d remove left recursion
S->AA/ab A->Bd/null B->SB/dremove left recursion
vrajdobariya
2.1k
views
asked
Sep 6, 2021
Compiler Design
compiler-design
left-recursion
grammar
+
–
1
1 vote
1
1 answer
2.8k
2.8k views
Ullman (Compiler Design) Edition 2 Exercise 5.4 Question 3 (Page No. 337)
The following SDT computes the value of a string of $0's$ and $1's$ interpreted as a positive, binary integer.$B\rightarrow B_{1}0\:\{B.val=2\times B_{1}.val\}\mid B_{1}1...
admin
2.8k
views
asked
Sep 6, 2019
Compiler Design
ullman
compiler-design
syntax-directed-translation
grammar
left-recursion
descriptive
+
–
1
1 vote
0
0 answers
1.5k
1.5k views
Ullman (Compiler Design) Edition 2 Exercise 4.4 Question 1 (Page No. 231)
For each of the following grammars, devise predictive parsers and show the parsing tables. You may left-factor and/or eliminate left-recursion from your grammars first. $...
admin
1.5k
views
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
grammar
left-recursion
descriptive
+
–
0
0 votes
0
0 answers
922
922 views
Ullman (Compiler Design) Edition 2 Exercise 4.3 Question 2 (Page No. 216 - 217)
Repeat Exercise 4.3.1 on the following grammars:$S\rightarrow SS+\mid SS\: \ast\mid a$$S\rightarrow 0S1\mid 01$$S\rightarrow S ( S ) S\mid \epsilon$$S\rightarrow (L)\mid ...
admin
922
views
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
regular-expression
left-recursion
descriptive
+
–
0
0 votes
0
0 answers
1.9k
1.9k views
Ullman (Compiler Design) Edition 2 Exercise 4.3 Question 1 (Page No. 216)
The following is a grammar for regular expressions over symbols $a$ and $b$ only, using $+$ in place of $\mid$ for union, to avoid conflict with the use of vertical bar a...
admin
1.9k
views
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
regular-expression
left-recursion
descriptive
+
–
0
0 votes
0
0 answers
2.3k
2.3k views
Ullman(2e) Exercise-5.4.2 page no-336 Syntax Directed Translation
Rewrite the following SDT:A->A {a} B | AB {b} | 0B->B {c} A | BA {d} | 1so that the underlying grammar becomes non-left-recursive. Here a, b, c and d are actions, and 0 a...
aditi19
2.3k
views
asked
Mar 29, 2019
Compiler Design
compiler-design
syntax-directed-translation
left-recursion
+
–
0
0 votes
1
1 answer
777
777 views
Self doubt
We know that a grammar is contain1-left recursive2-ambiguous3-Common prefixThen grammar is not LL(1) If let I constructed M-TABLE or PARSE TABLEof grammar which is not co...
Ashish RajAnand
777
views
asked
Feb 5, 2019
Compiler Design
compiler-design
parsing
left-recursion
ll-parser
descriptive
+
–
0
0 votes
1
1 answer
2.4k
2.4k views
Ace Test Series: Compiler Design - Left Recursion Elimination
Shankar Kakde
2.4k
views
asked
Jan 23, 2019
Compiler Design
ace-test-series
compiler-design
context-free-grammar
parsing
left-recursion
+
–
1
1 vote
1
1 answer
1.2k
1.2k views
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$...
Applied Course
1.2k
views
asked
Jan 16, 2019
Compiler Design
applied-course-2019-mock1
compiler-design
context-free-grammar
left-recursion
+
–
0
0 votes
1
1 answer
678
678 views
UPPCL AE 2018:64
The following grammar $\text{G}$ is left recursive.$\text{E} \rightarrow \text{E + T}\; \mid \; \text{T} $$\text{T} \rightarrow \text{T * F} \; \mid \; \text{F} $$\text{F...
admin
678
views
asked
Jan 5, 2019
Compiler Design
uppcl2018
compiler-design
context-free-grammar
left-recursion
+
–
1
1 vote
1
1 answer
1.4k
1.4k views
Non-Left recursive grammar of the below grammar.
Grammar. S → Aa | B A → Ac | Aad | bd | epsilon . .
susgir2
1.4k
views
asked
Jan 2, 2019
Compiler Design
compiler-design
left-recursion
grammar
parsing
recurrence-relation
+
–
0
0 votes
0
0 answers
735
735 views
https://gateoverflow.in/1697/gate1998-6b
why isn't A replaced in the first production? that is also indirect recursive
aditi19
735
views
asked
Oct 26, 2018
Compiler Design
compiler-design
left-recursion
+
–
0
0 votes
0
0 answers
598
598 views
Left Recursion
Remove the Left Recursion from it : A - B|a|CBDB - C|bC - A|cD - d
Na462
598
views
asked
Sep 19, 2018
Compiler Design
compiler-design
left-recursion
+
–
2
2 votes
2
2 answers
2.6k
2.6k views
Left recursion
In this question should we eliminate left recursion by putting values of S and A in the respective productions so answer will be c but if according to the given productio...
saumya mishra
2.6k
views
asked
Jun 11, 2018
Compiler Design
compiler-design
left-recursion
ace-test-series
+
–
0
0 votes
5
5 answers
1.8k
1.8k views
Compiler desigb
consider the following grammar$E\rightarrow int|int+E|int-E |int-(E) |int*E$Which statement is true?a) Grammer is left factoredb) Cant be determined
Pun M
1.8k
views
asked
Apr 1, 2018
Compiler Design
compiler-design
grammar
left-recursion
+
–
0
0 votes
1
answers
1 answer
5.5k
5.5k views
Check if grammar is LL(1) ?
Given a grammar :$E \rightarrow E + T / T$$T \rightarrow i$Can I directly say that grammar is not $LL(1)$ because $LL(1)$ can't parse Left Recursive Grammar, without dra...
Rahul Ranjan 1
5.5k
views
asked
Mar 19, 2018
Compiler Design
compiler-design
grammar
parsing
ll-parser
left-recursion
+
–
0
0 votes
1
1 answer
1.8k
1.8k views
Left Recursion Removal
Remove Left Recursion from the following Context Free Grammar.$S \rightarrow Aa| Sa|c$$A \rightarrow Ab|Sd|e$
Mk Utkarsh
1.8k
views
asked
Jan 31, 2018
Compiler Design
left-recursion
compiler-design
+
–
3
3 votes
5
5 answers
4.0k
4.0k views
MadeEasy Test Series 2018: Compiler Design - Left Recursion
I think the answer should be option: C but it is given option A.Providing the snapshot of the question with the options provided.I don't think option A should be the corr...
nishitshah
4.0k
views
asked
Jan 23, 2018
Compiler Design
compiler-design
left-recursion
made-easy-test-series
+
–
0
0 votes
1
answers
1 answer
1.4k
1.4k views
ambiguity
$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?
A_i_$_h
1.4k
views
asked
Dec 23, 2017
Compiler Design
compiler-design
ambiguous-grammar
left-recursion
descriptive
+
–
2
2 votes
2
answers
2 answers
1.6k
1.6k views
eliminate left recurrsion
Eliminate left recurrsion from $S\rightarrow S0S1S | 01$
A_i_$_h
1.6k
views
asked
Oct 20, 2017
Compiler Design
compiler-design
parsing
left-recursion
+
–
1
1 vote
2
answers
2 answers
1.6k
1.6k views
left recursion
Parshu gate
1.6k
views
asked
Sep 17, 2017
Theory of Computation
compiler-design
left-recursion
grammar
parsing
+
–
0
0 votes
1
1 answer
582
582 views
LEft recurssion
E - E+T / TT - idgrammar after left recursion isa) E->T +E / T T ->idb)E ->T / E + TT ->idc) E->E' TT->+TE' / epsilond)E ->TXX- +TX / epsilonActually i...
A_i_$_h
582
views
asked
Sep 7, 2017
Compiler Design
compiler-design
parsing
left-recursion
descriptive
+
–
Page:
1
2
next »