Recent questions tagged grammar

2 votes
1 answer
301
Is the following question even valid? Shouldn't there be a production for all variables?
1 votes
1 answer
302
2 votes
3 answers
305
2 votes
2 answers
307
Consider the following context-free grammarS → SS + | SS*| a for the string aa + a*. Is the grammar ambiguous ?
4 votes
1 answer
308
What is the maximum number of reduce moves that can be taken by a bottom up parser for a grammar without epsilon and unit production (i.e., of type A →∈ and A →B ) ...
3 votes
1 answer
309
Predictive parse table for following grammars:1.S->FR R->*S/∈ F->idand2.S->iEtSS' | a S'->eS | ∈ E->b
0 votes
1 answer
312
0 votes
1 answer
313
Can ambiguous grammars have precedence and associativity??
0 votes
2 answers
316
1 votes
0 answers
317
Consider the Grammer S - (S) | SS | ()In the goto graph of LR(0) item, the number of inadequate states are(A). 1(B). 2(C). 3(D). 4
3 votes
1 answer
320
Match the following $:$ $\begin{array} {clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.}& \text{Context free grammar} & \text{i.} & \text{Linear bounded a...
1 votes
1 answer
321
If all the production rules have single non-terminal symbol on the left side, the grammar defined is:Context free grammarContext sensitive grammarUnrestricted grammarPhas...
2 votes
1 answer
322
15. A grammar will be meaningless of the(a) terminal set and non-terminal set are not disjoint(b) left hand side of a productions is a single terminal(c) left hand side o...
3 votes
3 answers
323
2 votes
1 answer
328
0 votes
1 answer
329
Match the following $:$$\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{a.} & \text{Chomsky Normal form} & \text{i.} & S \rightarrow b S S...