what are the rules of graph construction and using the example:
S::= A/B
A::=XA/Y
B::=XB/Z

Sorry, but we don't do your homework for you. In any case, in your example where A::=XA/Y and B::=XB/Z, do you mean A = (XA)/Y and B = (XB)/Z? Or something else?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.