retagged by
2,697 views
1 votes
1 votes
In a context-sensitive grammar,
(a) ε can’t be the right-hand side of any production
(b) number of grammar symbols on the left-hand side of a production
can’t be greater than the number of non-terminals on the right-hand side
(c) number of grammar symbols on the left-hand side of a production can’t
be greater than the number of grammar symbols on the right-hand side
(d) all of the above

 

a option is false
retagged by

1 Answer

1 votes
1 votes
A Grammar is said to be CSL :

If each production is of the form : x--->y where x,y is (V U T)+

and |x|<=|y|.

 

So option a is true. CSL can't have epsilon productions.

Also option c is true.

number of grammar symbols on the left-hand side of a production can’t
be greater than the number of grammar symbols on the right-hand side

 

Option B is false.

Related questions

0 votes
0 votes
2 answers
1
go_editor asked Mar 26, 2020
345 views
Which of the following is the most general phase – structured grammar ?RegularContext – SensitiveContext freeNone of these
2 votes
2 votes
4 answers
3
vkm07 asked Jul 31, 2016
1,649 views
Which of the following is the most general phase-structured grammar?(a) regular (b) context-free(c) context-sensitive (d) none of the above
4 votes
4 votes
2 answers
4
vkm07 asked Jul 28, 2016
5,625 views
Which of the following grammars are not phase-structured?(a) regular (b) context-free(c) context-sensitive (d) none of the above