Recent questions tagged grammar

0 votes
0 answers
124
1. Does LR(k) grammar exist for CFL's that are not deterministic.2. Is there one to one correspondence between LR(1) and DCFL or between LR(k) and DCFL.
1 votes
1 answer
125
state true /false1) for every DCFL there exist at least one unambiguous grammar
0 votes
0 answers
128
0 votes
3 answers
130
S->Aa | Bc A->a B->a1. Is the above grammer left factored ?? If not ,then do left factoring on it ??2. Is above grammer deterministic ?? 3. Is every left factored...
0 votes
1 answer
131
1 votes
0 answers
134
Let r1 = (b*ab*ab*ab*)* and r2= (b*ab*ab*)*. What is L(r1) ∩ L(r2)?a) L[b*ab*ab*ab*)*]b) L[b*ab*ab*)*]c) L[b*ab*ab*)6]d) L[b*ab*ab*ab*ab*ab*ab*)*]
0 votes
1 answer
136
0 votes
0 answers
143
Every regular set has an LR(1) grammar.What does this line mean??
0 votes
0 answers
145
0 votes
2 answers
146
S->AaA->BDB->b | ɛD->d | ɛwhat is FIRST(S)?
0 votes
1 answer
147
Consider the following grammar which of the following is/are ambiguous?(i) S → y | SxS(ii) S → E | ExS and E → y(iii) S → Sxy | y
1 votes
0 answers
150
Does this grammar generates string of atleast length 2S->AAA->aA | bA | a | b