closed by
265 views
0 votes
0 votes
closed as a duplicate of: Handle in a grammar
Consider the following grammar:

S -->ZZ

Z -->xZ /y

Which of the following represents a 'handle' in the generation of string "xxxyxy"?

a) ZxZ

b) Zxy

c) xZxy

d) xZ
closed by

Related questions

0 votes
0 votes
2 answers
1
Subhadeeppathak asked Nov 28, 2022
420 views
Attributes are said to be of two type, synthesised and inherited. What actually is an attribute? Why an attribute exist, how to define it?
0 votes
0 votes
2 answers
2
Mohit Aggarwal asked Dec 1, 2021
1,327 views
what is the difference between lexical error and syntax error?