Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged first-and-follow
0
votes
0
answers
1
FIRST $ FOLLOW
S -> A B A -> f S f A -> b b B d B -> Ɛ B -> c First(S) = First(A) = First(B) = Follow(S) = Follow(A) = Follow(B) =
S - A BA - f S fA - b b B dB - ƐB - cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
Ana_101
1
view
Ana_101
asked
1 minute
ago
Compiler Design
first-and-follow
compiler-design
parsing
grammar
+
–
0
votes
1
answer
2
FIRST & FOLLOR
S -> A B A -> f S f A -> b b B d B -> Ɛ B -> c First(S) = First(A) = First(B) = Follow(S) = Follow(A) = Follow(B) =
S - A BA - f S fA - b b B dB - ƐB - cFirst(S) =First(A) =First(B) =Follow(S) =Follow(A) =Follow(B) =
Ana_101
13
views
Ana_101
asked
2 hours
ago
Compiler Design
first-and-follow
compiler-design
parsing
first-order-logic
descriptive
+
–
5
votes
1
answer
3
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 2
Consider the following grammar- ... $\text{Follow(T)}$ are same. $\operatorname{First}(\mathrm{A})$ and $\operatorname{First}(\mathrm{T})$ are same.
Consider the following grammar-$$\begin{aligned}& S \rightarrow b T \\& T \rightarrow A b \mid B a \\& A \rightarrow a S \mid C B \\& B \rightarrow b D \\& C \rightarrow ...
GO Classes
601
views
GO Classes
asked
Jan 21
Compiler Design
goclasses2024-mockgate-12
goclasses
compiler-design
parsing
first-and-follow
multiple-selects
1-mark
+
–
1
votes
3
answers
4
Made Easy Test Series - Compiler Design
$\text{ Find $\textbf{First(A)}$ and $\textbf{Follow(B)}$ }?$
$\text{ Find $\textbf{First(A)}$ and $\textbf{Follow(B)}$ }?$
Rahhul A
504
views
Rahhul A
asked
Nov 10, 2023
Compiler Design
compiler-design
made-easy-test-series
first-and-follow
+
–
0
votes
1
answer
5
first follow self doubt
Does Follow and First operation always apply on non left recursive grammar?
Does Follow and First operation always apply on non left recursive grammar?
Sajal Mallick
166
views
Sajal Mallick
asked
Oct 13, 2023
Compiler Design
compiler-design
first-and-follow
+
–
2
votes
1
answer
6
Compiler Design
Confusion in follow of A,Please clarify.
Confusion in follow of A,Please clarify.
Overflow04
365
views
Overflow04
asked
Jul 12, 2022
Compiler Design
compiler-design
ace-test-series
first-and-follow
+
–
0
votes
3
answers
7
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$
Compute the FIRST and FOLLOW for the postfix grammar after removing the left recursion:$ S → S S+/ S S* /a$
jayanth
3.5k
views
jayanth
asked
Jun 16, 2022
Compiler Design
compiler-design
left-recursion
first-and-follow
+
–
0
votes
1
answer
8
Compute FIRST and FOLLOW sets
Compute FIRST and FOLLOW sets: S→ aAC | bB A→ Abc| Abd | e B→ f | g C→ h | i
Compute FIRST and FOLLOW sets:S→ aAC | bBA→ Abc| Abd | eB→ f | gC→ h | i
Subhrangsu
2.2k
views
Subhrangsu
asked
Apr 15, 2022
Compiler Design
compiler-design
grammar
parsing
first-and-follow
+
–
2
votes
1
answer
9
GATE Overflow Test Series | Compiler Design | Test 1 | Question: 16
Consider the grammar given below: $S \rightarrow ABA$ $A \rightarrow Bc \mid dA \mid \epsilon $ $B \rightarrow eA$ Let $a,b,c$ and $\$ be indexed as follows: $\begin{array}{|c|c|c|c|c|} \hline c & d & e & \$ ... \beta + \gamma =$ _______ (For example, if the FOLLOW set is $(c,d,e,\$)$ , then the answer should be $2357$)
Consider the grammar given below:$S \rightarrow ABA$$A \rightarrow Bc \mid dA \mid \epsilon $$B \rightarrow eA$Let $a,b,c$ and $\$$ be indexed as follows:$$\begin{array}{...
gatecse
292
views
gatecse
asked
Dec 14, 2020
Compiler Design
go2025-cd-1
numerical-answers
parsing
first-and-follow
+
–
0
votes
1
answer
10
NIELIT 2017 OCT Scientific Assistant A (CS) - Section B: 10
Consider an $\varepsilon$-tree CFG. If for every pair of productions $A\rightarrow u$ and $A\rightarrow v$ If $\text{FIRST(u)} \cap \text{FIRST(v)}$ is empty then the CFG has to be $LL(1).$ If the CFG is $LL(1)$ then $\text{FIRST(u)} \cap \text{FIRST(v)}$ has to be empty. Both $(A)$ and $(B)$ None of the above
Consider an $\varepsilon$-tree CFG. If for every pair of productions $A\rightarrow u$ and $A\rightarrow v$If $\text{FIRST(u)} \cap \text{FIRST(v)}$ is empty then the CFG ...
admin
3.2k
views
admin
asked
Apr 1, 2020
Compiler Design
nielit2017oct-assistanta-cs
compiler-design
context-free-grammar
first-and-follow
+
–
0
votes
0
answers
11
Ullman (Compiler Design) Edition 2 Exercise 4.4 Question 4 (Page No. 231)
Compute FIRST and FOLLOW for each of the grammars of $S\rightarrow 0S1\mid 01$ $S\rightarrow +SS\mid \ast SS\mid a$ $S\rightarrow S(S)S\mid \epsilon$ $S\rightarrow S+S\mid SS\mid (S)\mid S\ast\mid a$ ... $bterm\:\rightarrow\:bterm\:and\:bfactor\mid bfactor$ $bfactor\:\rightarrow\:not\:bfactor\mid (bexpr)\mid true\mid false$
Compute FIRST and FOLLOW for each of the grammars of $S\rightarrow 0S1\mid 01$ $S\rightarrow +SS\mid \ast SS\mid a$ $S\rightarrow S(S)S\mid \epsilon$ $S\rightarrow S+S\mi...
admin
640
views
admin
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
grammar
first-and-follow
descriptive
+
–
0
votes
2
answers
12
Ullman (Compiler Design) Edition 2 Exercise 4.4 Question 3 (Page No. 231)
Compute FIRST and FOLLOW for the grammar of $S\rightarrow SS + \mid SS {\ast} \mid a$
Compute FIRST and FOLLOW for the grammar of $S\rightarrow SS + \mid SS {\ast} \mid a$
admin
537
views
admin
asked
Aug 20, 2019
Compiler Design
ullman
compiler-design
grammar
first-and-follow
descriptive
+
–
0
votes
1
answer
13
Follow Set Self Doubt
X->aABe B->c | d A->a What will be the follow of A here? {c, d, $} or {c, d, e, dollar}
X->aABeB->c | dA->aWhat will be the follow of A here?{c, d, $} or {c, d, e, dollar}
aditi19
476
views
aditi19
asked
Jun 8, 2019
Compiler Design
compiler-design
first-and-follow
+
–
0
votes
1
answer
14
Self doubt on first follow
Rishabh Baghel
373
views
Rishabh Baghel
asked
Jun 3, 2019
Compiler Design
compiler-design
parsing
grammar
first-and-follow
+
–
1
votes
0
answers
15
First set and follow set self-doubt
why do first sets can have epsilon symbol but follow sets don’t? P.S: I’ve a silly doubt :P
why do first sets can have epsilon symbol but follow sets don’t?P.S: I’ve a silly doubt :P
aditi19
1.7k
views
aditi19
asked
May 12, 2019
Compiler Design
compiler-design
parsing
first-and-follow
+
–
1
votes
1
answer
16
MadeEasy Test Series: Compiler Design - Grammar
Consider the following grammar G shown Below : S → abS | ScS | d | c The number of terminals in follow set of non-terminal S is ___________________ Is “$” symbol considered terminal?
Consider the following grammar G shown Below :S → abS | ScS | d | cThe number of terminals in follow set of non-terminal S is ___________________ Is “$” symbol cons...
vinay chauhan
1.3k
views
vinay chauhan
asked
Dec 30, 2018
Compiler Design
first-and-follow
made-easy-test-series
grammar
+
–
1
votes
1
answer
17
compiler design. Why SLR(1) even if follow are different?
Consider the following grammar S --> Ka|bKc|dc|bda K ---> d The grammar is not LALR(1) SLR(1) LR(1) none of the above
Consider the following grammarS Ka|bKc|dc|bdaK - dThe grammar is notLALR(1)SLR(1)LR(1)none of the above
rahuljai
1.0k
views
rahuljai
asked
Dec 13, 2018
Compiler Design
compiler-design
first-and-follow
+
–
0
votes
2
answers
18
ME test series
Consider the following CFG, with S as start symbol: S -> aA l CB A -> BaA I e B-> bB l Abc l e C -> B (HERE ‘e’ IS EPSILON OR NULL PRODUCTION) FIRST(B)? FOLLOW(C)?
Consider the following CFG, with S as start symbol:S - aA l CBA - BaA I eB- bB l Abc l eC - B (HERE ‘e’ IS EPSILON OR NULL PRODUCTION)FIRST(B)?FOLLOW(C)?
newdreamz a1-z0
983
views
newdreamz a1-z0
asked
Dec 8, 2018
Compiler Design
compiler-design
parsing
first-and-follow
made-easy-test-series
+
–
0
votes
1
answer
19
#CD Doubt
#CD compute first and follow for S->SS+\SS*\a
#CDcompute first and follow forS->SS+\SS*\a
Pavan Karthik
450
views
Pavan Karthik
asked
Oct 28, 2018
Compiler Design
compiler-design
grammar
parsing
first-and-follow
+
–
0
votes
2
answers
20
FIRST Set
S->Aa A->BD B->b | ɛ D->d | ɛ what is FIRST(S)?
S->AaA->BDB->b | ɛD->d | ɛwhat is FIRST(S)?
aditi19
478
views
aditi19
asked
Sep 14, 2018
Compiler Design
compiler-design
grammar
parsing
first-and-follow
+
–
Page:
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register