Give a BNF grammar for each of the languages below ab d T
Give a BNF grammar for each of the languages below.
 <S> :: = ab <S> | <empty>
Solution
d. <S> ::= <digit><digit>| <digit>
<digit>::= 0|1|....|9 <digit>| <empty>
e. <S> ::=<S>; |<empty>
f. <S>::= begin <statements> end
<statements>::= <statement> ; <statements> | <statement> ;

