Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged grammar
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
52
views
Ana_101
asked
4 days
ago
Compiler Design
first-and-follow
compiler-design
parsing
grammar
+
–
1
votes
0
answers
2
ISRO 2024
Consider the context-free grammer $G$ below. There $S$ is the starting non terminal symbol, while $a$ and $b$ are terminal symbols. $S \rightarrow aaSb | T$ $T \rightarrow Tb | a$ Which of the following statments is true about the language $L(G)$ generated by $G$? ... $aaaabb$ does not $aaaabb$ belongs to $L(G)$ but $aabbaabb$ does not $aaabb$ belongs to $L(G)$ but $aaaaabbb$ does not
Consider the context-free grammer $G$ below. There $S$ is the starting non terminal symbol, while $a$ and $b$ are terminal symbols.$S \rightarrow aaSb | T$$T \rightarrow ...
Ramayya
212
views
Ramayya
asked
Jan 7
Theory of Computation
isro-2024
theory-of-computation
grammar
+
–
0
votes
0
answers
3
viable prefix
Consider a grammar G. Given below is the sentential form of G to derive a string W = –(id + id) and E is the starting symbol of G. E -> –E E -> –(E) E -> –(E+E) E -> –(id+E) E -> –(id+id) Which of the option is not viable prefix of any sentential form?
Consider a grammar G. Given below is the sentential form of G to derive a string W = –(id + id) and E is the starting symbol of G.E - –EE - –(E)E - –(E+E)E - –(...
24aaaa23
177
views
24aaaa23
asked
Oct 1, 2023
Compiler Design
compiler-design
grammar
+
–
0
votes
0
answers
4
compiler design
how many handles are detected by bottom up parser for string a+a*a? grammar is E->E+T|T T->T*F|F F->a please draw the whole procedure and explain how bottom up parser does right most derivation in reverse in this question
how many handles are detected by bottom up parser for string a+a*a?grammar isE->E+T|TT->T*F|FF->aplease draw the whole procedure and explain how bottom up parser does ri...
24aaaa23
181
views
24aaaa23
asked
Oct 1, 2023
Compiler Design
compiler-design
grammar
+
–
0
votes
2
answers
5
Theory of Computation
gateexplore
256
views
gateexplore
asked
Jul 2, 2023
Theory of Computation
ambiguous
grammar
theory-of-computation
self-doubt
+
–
0
votes
0
answers
6
An Introduction to Formal Languages and Automata,Peter Linz,6th edition,exercise 3.3 q3
Find a regular grammar that generates the language L (aa ∗ (ab + a) ∗ ).
Find a regular grammar that generates the language L (aa ∗ (ab + a) ∗ ).
Silver_Reaper
522
views
Silver_Reaper
asked
Feb 6, 2023
Theory of Computation
theory-of-computation
regular-language
grammar
peter-linz
+
–
2
votes
1
answer
7
ace academy ToC
I don’t get the explanation, How do you categorize grammer on the basis of production?
I don’t get the explanation, How do you categorize grammer on the basis of production?
h4kr
573
views
h4kr
asked
Dec 4, 2022
Theory of Computation
theory-of-computation
context-sensitive
grammar
ace-test-series
+
–
0
votes
0
answers
8
made easy test series
Caption
Caption
Himanshu555
401
views
Himanshu555
asked
Oct 24, 2022
Compiler Design
made-easy-test-series
three-address-code
grammar
+
–
0
votes
0
answers
9
UGC NET CSE | October 2022 | Part 1 | Question: 83
Consider the grammer $\mathrm{S} \rightarrow \mathrm{SbS} \mid \mathrm{a}$ ... true, Only $\text{(B)}$ is true Only $\text{(C)}$ is true Only $\text{(A)}$ is true
Consider the grammer $\mathrm{S} \rightarrow \mathrm{SbS} \mid \mathrm{a}$.Consider the following statements:The string abababa has(A) two parse trees(B) two left most de...
admin
263
views
admin
asked
Oct 23, 2022
Compiler Design
ugcnetcse-oct2022-paper1
compiler-design
grammar
easy
+
–
1
votes
1
answer
10
TIFR CSE 2022 | Part B | Question: 7
Consider the following grammar: $\text{P, Q, R}$ are non-terminals; $c, d$ are terminals; $\text{P}$ is the start symbol; and the production rules follow. $\mathrm{P}::=\mathrm{QR}$ $\text{Q ::= c}$ $\text{Q} ::=\text{RcR}$ ... three consecutive $c\text{'s}$ Every string produced by the grammar has at least has many $d\text{'s}$ as $c\text{'s}$
Consider the following grammar: $\text{P, Q, R}$ are non-terminals; $c, d$ are terminals; $\text{P}$ is the start symbol; and the production rules follow.$\mathrm{P}::=\m...
admin
511
views
admin
asked
Sep 1, 2022
Compiler Design
tifr2022
compiler-design
grammar
+
–
0
votes
0
answers
11
Best Open Video Playlist for Grammatical Sentence Topic | Verbal Aptitude
Please list out the best free available video playlist for English Grammatical Sentence from Verbal Aptitude as an answer here (only one playlist per answer). We'll then select the best playlist and add to GO classroom ... ones are more likely to be selected as best. For the full list of selected videos please see here
Please list out the best free available video playlist for English Grammatical Sentence from Verbal Aptitude as an answer here (only one playlist per answer). We'll then ...
makhdoom ghaya
201
views
makhdoom ghaya
asked
Aug 28, 2022
Study Resources
missing-videos
free-videos
go-classroom
video-links
grammar
+
–
2
votes
2
answers
12
Is the following grammar LL(1) ?
Is the following grammar LL(1) ? S→ aABbCD | ϵ A→ ASd | ϵ B→ Sac| hC | ϵ C→ Sf |Cg D→ aBD | ϵ Draw the LL(1) parsing table for the given grammar.
Is the following grammar LL(1) ?S→ aABbCD | ϵA→ ASd | ϵB→ Sac| hC | ϵC→ Sf |CgD→ aBD | ϵDraw the LL(1) parsing table for the given grammar.
Subhrangsu
9.5k
views
Subhrangsu
asked
Apr 16, 2022
Compiler Design
compiler-design
parsing
grammar
+
–
0
votes
1
answer
13
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.3k
views
Subhrangsu
asked
Apr 15, 2022
Compiler Design
compiler-design
grammar
parsing
first-and-follow
+
–
1
votes
1
answer
14
Test series Made easy
How to solve this ? Please help.
How to solve this ? Please help.
raja11sep
661
views
raja11sep
asked
Dec 31, 2021
Compiler Design
compiler-design
grammar
context-free-grammar
ll-parser
descriptive
made-easy-test-series
+
–
4
votes
1
answer
15
S->AA/ab A->Bd/null B->SB/d remove left recursion
S->AA/ab A->Bd/null B->SB/d remove left recursion
S->AA/ab A->Bd/null B->SB/dremove left recursion
vrajdobariya
1.2k
views
vrajdobariya
asked
Sep 6, 2021
Compiler Design
compiler-design
left-recursion
grammar
+
–
13
votes
2
answers
16
GATE CSE 2021 Set 1 | Question: 31
Consider the following context-free grammar where the set of terminals is $\{a,b,c,d,f\}$ ...
Consider the following context-free grammar where the set of terminals is $\{a,b,c,d,f\}$. $$\begin{array}{lll} \text{S} & \rightarrow & d \: a \: \text{T} \mid \text{R} ...
Arjun
6.4k
views
Arjun
asked
Feb 18, 2021
Compiler Design
gatecse-2021-set1
compiler-design
grammar
2-marks
+
–
1
votes
2
answers
17
UGC NET CSE | October 2020 | Part 2 | Question: 57
Which of the following grammars is(are) ambiguous? $s \rightarrow ss \mid asb \mid bsa \mid \lambda$ $s \rightarrow asbs \mid bsas \mid \lambda$ ... : $(i)$ and $(iii)$ only $(ii)$ only $(ii)$ and $(iii)$ only $(i)$ and $(ii)$ only
Which of the following grammars is(are) ambiguous?$s \rightarrow ss \mid asb \mid bsa \mid \lambda$$s \rightarrow asbs \mid bsas \mid \lambda$$s \rightarrow aAB \\ A \rig...
go_editor
2.2k
views
go_editor
asked
Nov 20, 2020
Theory of Computation
ugcnetcse-oct2020-paper2
theory-of-computation
grammar
ambiguous
+
–
1
votes
2
answers
18
NIELIT 2017 July Scientist B (CS) - Section B: 47
What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon and unit production (i.e.,of type $A\to\epsilon$ and $A \to a)$ to parse a string with $n$ tokens? $n/2$ $n-1$ $2n-1$ $2^n$
What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon and unit production (i.e.,of type $A\to\epsilon$ and $A \...
admin
1.0k
views
admin
asked
Mar 30, 2020
Compiler Design
nielit2017july-scientistb-cs
compiler-design
grammar
+
–
2
votes
1
answer
19
NIELIT 2017 DEC Scientist B - Section B: 33
Which of the following statements is/are false? $S1$: $LR(0)$ grammar and $SLR(1)$ grammar are equivalent $S2$: $LR(1)$ grammar are subset of $LALR(1)$ grammars $S1$ only $S1$ and $S2$ both $S2$ only None of the options
Which of the following statements is/are false?$S1$: $LR(0)$ grammar and $SLR(1)$ grammar are equivalent$S2$: $LR(1)$ grammar are subset of $LALR(1)$ grammars$S1$ only$S1...
admin
2.8k
views
admin
asked
Mar 30, 2020
Compiler Design
nielit2017dec-scientistb
compiler-design
grammar
lr-parser
+
–
0
votes
2
answers
20
UGC NET CSE | December 2005 | Part 2 | Question: 4
Which sentence can be generated by $S\rightarrow d/bA, A\rightarrow d/ccA$ : $\text{bccddd}$ $\text{aabccd}$ $\text{ababccd}$ $\text{abbbd}$
Which sentence can be generated by $S\rightarrow d/bA, A\rightarrow d/ccA$ :$\text{bccddd}$$\text{aabccd}$$\text{ababccd}$$\text{abbbd}$
go_editor
421
views
go_editor
asked
Mar 27, 2020
Theory of Computation
ugcnetcse-dec2005-paper2
theory-of-computation
context-free-grammar
grammar
+
–
0
votes
2
answers
21
UGC NET CSE | June 2005 | Part 2 | Question: 32
Which of the following is the most general phase – structured grammar ? Regular Context – Sensitive Context free None of these
Which of the following is the most general phase – structured grammar ?RegularContext – SensitiveContext freeNone of these
go_editor
347
views
go_editor
asked
Mar 26, 2020
Compiler Design
ugcnetcse-june2005-paper2
compiler-design
grammar
context-sensitive
+
–
Page:
1
2
3
4
5
6
...
15
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register