Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged first-and-follow
0
votes
1
answer
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
126
views
Ana_101
asked
Apr 19
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
63
views
Ana_101
asked
Apr 19
Compiler Design
first-and-follow
compiler-design
parsing
first-order-logic
descriptive
+
–
0
votes
1
answer
3
GATE CSE 2024 | Set 1 | Question: 28
Consider the following grammar $G$, with $S$ as the start symbol. The grammar $G$ has three incomplete productions denoted by $(1), (2)$, and $(3)$ ... $R \rightarrow c R$ (1) $S \rightarrow R f$ (2) $T \rightarrow c T$ (3) $R \rightarrow c R$
Consider the following grammar $G$, with $S$ as the start symbol. The grammar $G$ has three incomplete productions denoted by $(1), (2)$, and $(3)$.$$\begin{aligned} & S ...
Arjun
1.8k
views
Arjun
asked
Feb 16
Compiler Design
gatecse2024-set1
compiler-design
first-and-follow
+
–
5
votes
1
answer
4
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
625
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
5
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
528
views
Rahhul A
asked
Nov 10, 2023
Compiler Design
compiler-design
made-easy-test-series
first-and-follow
+
–
0
votes
1
answer
6
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
170
views
Sajal Mallick
asked
Oct 13, 2023
Compiler Design
compiler-design
first-and-follow
+
–
2
votes
1
answer
7
Compiler Design
Confusion in follow of A,Please clarify.
Confusion in follow of A,Please clarify.
Overflow04
368
views
Overflow04
asked
Jul 12, 2022
Compiler Design
compiler-design
ace-test-series
first-and-follow
+
–
0
votes
3
answers
8
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.7k
views
jayanth
asked
Jun 16, 2022
Compiler Design
compiler-design
left-recursion
first-and-follow
+
–
0
votes
1
answer
9
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.4k
views
Subhrangsu
asked
Apr 15, 2022
Compiler Design
compiler-design
grammar
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
648
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
549
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
481
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
384
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
+
–
17
votes
3
answers
16
GATE CSE 2019 | Question: 19
Consider the grammar given below: $S \rightarrow Aa$ $A \rightarrow BD$ $B \rightarrow b \mid \epsilon $ $D \rightarrow d \mid \epsilon $ Let $a,b,d$ and $\$ be indexed as follows:$\begin{array}{|l|l|l|l|} \hline a & b & d & \$ \ ... $)$ , then the answer should be $3210$)
Consider the grammar given below:$S \rightarrow Aa$$A \rightarrow BD$$B \rightarrow b \mid \epsilon $$D \rightarrow d \mid \epsilon $Let $a,b,d$ and $\$$ be indexed as fo...
Arjun
20.3k
views
Arjun
asked
Feb 7, 2019
Compiler Design
gatecse-2019
numerical-answers
compiler-design
parsing
1-mark
first-and-follow
+
–
1
votes
1
answer
17
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
18
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
19
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
1.0k
views
newdreamz a1-z0
asked
Dec 8, 2018
Compiler Design
compiler-design
parsing
first-and-follow
made-easy-test-series
+
–
Page:
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register