The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
41 views
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 | ε
in Compiler Design by Active (4.4k points) | 41 views
0
seems to be correct !

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,093 questions
55,328 answers
190,852 comments
86,255 users