647 views
0 votes
0 votes
Design grammar for the language-

set of all strings of 0s and 1s such that every 0 is immediately followed by at least one 1

 

is this correct?

S->A | 01S

A->1AS | ε

Please log in or register to answer this question.

Related questions

471
views
0 answers
0 votes
admin asked Aug 17, 2019
471 views
Design grammars for the following languages:The set of all strings of $0's$ and $1's$ such that every $0$ is immediately followed by at least one $1$.The set of all strings ... $xy$, where $x\neq y$ and $x$ and $y$ are of the same length.
786
views
0 answers
1 votes
admin asked Aug 17, 2019
786 views
Repeat Question $4.2.1$ for each of the following grammars and strings: $S\rightarrow 0S1\mid 01$ with string $000111$ ... bfactor\mid bfactor$bfactor\:\rightarrow\:not\:bfactor\mid (bexpr)\mid true\mid false$
499
views
0 answers
0 votes
admin asked Aug 17, 2019
499 views
There is an extended grammar notation in common use. In this notation, square and curly braces in production bodies are metasymbols (like $\rightarrow$ ... grammar with these extensions can be generated by a grammar without the extensions.
219
views
0 answers
0 votes
admin asked Aug 20, 2019
219 views
Show how, having filled in the table as in Question $4.4.9$, we can in $O(n)$ time recover a parse tree for $a_{1}a_{2}\cdot\cdot\cdot a_{n}$. ... , some pair of nonterminals in other table entries that justified putting $A$ in $T_{ij}$.