Question: Consider the following BNF grammar rules: ::= [ , ] | ::= | ( ) ::= x | y | z For each of the
Consider the following BNF grammar rules:
For each of the strings listed below, indicate all syntactic categories of which it is a member, if any. (Syntactic categories refer to the nonterminal ancestors of a string). In each case, provide a rationale for your response.
a - z
b - ( x )
c - [ y ]
d - ( [ x , y ] )
e - [ ( x ) , y ]
f - [ ( x ), [ y , x ] ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
