The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
38 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 | ε
asked in Compiler Design by Active (3.7k points) | 38 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
49,532 questions
54,126 answers
187,326 comments
71,046 users