Recent questions tagged grammar

0 votes
2 answers
213
1 votes
0 answers
214
What is the language accepted by the given Grammar ?S - aSa / bSb / a / b
0 votes
0 answers
219
Ques. S Aa/bAc/dc A d Isn't this grammar Ambiguous?If First(S) has more than one production giving the same first value, isn't it ambiguous?
2 votes
1 answer
221
7 votes
6 answers
222
Which of the following statements is true?Every LL(1) grammar is LALR(1).Every LL(1) grammar is CLR(1). AS I think 2nd is True and 1st is False if I am wrong please let ...
0 votes
1 answer
224
1 votes
1 answer
225
Given answer is yes but i think should not be LL(1)
1 votes
1 answer
227
1 votes
0 answers
229
True or False ,1) Is every LL grammar have one to one correspondance with DCFL?Please explain with examples.
1 votes
2 answers
231
1 votes
2 answers
232
4 votes
2 answers
233
S - (L) | aL - L . S | SQuestion: Make necessary changes to make it suitable for LL(1) parsing and Construct FIRST and FOLLOW sets.
0 votes
0 answers
234
HowArithmetic expressions with matched pairs of parentheses isX→XbX∣XcX∣dXf∣g ???
2 votes
2 answers
236
I need two proves, i am stuckhere1.Show that every S-grammar is Unambiguous2.Show that a RegEx can never be Inherently Ambiguousso what to use here? Induction/Contradicti...
0 votes
1 answer
237
0 votes
1 answer
238
Eliminate all Null -productions fromS $\rightarrow$ AaB | aaB,A $\rightarrow$ NullB $\rightarrow$ bbA |Null.
0 votes
2 answers
239
0 votes
1 answer
240
Find dfa's for the following languages on Σ = {a,b}.L= {w: na(w) mod 3 >nb(w) mod 3}.L= {w :(na(w) – nb(w)) mod 3 0}.