SQL

Given that
R={S➡️abSc|E
Find L(G)

The language generated by the grammar G is as follows:

L(G) = {ab^nc | n ≥ 0}

Explanation:
The grammar G is defined as follows:
S → abSc
S → ε

Starting from the start symbol S, we can generate strings in the form of "ab^n c" where n represents the number of occurrences of the symbol 'b'. Since the production S → abSc allows for the recursive addition of the substring "ab", we can generate strings of the form "ab^n c" where n ≥ 0.

Therefore, the language generated by the grammar G is the set of all strings in the form of "ab^n c" where n is a non-negative integer.