please help
3. Give a context-free grammar for the following language L:
L={we{a,b,c,d}*|w does not contain the substring abc}
4.Consider the grammar G={S},{a,b},S,Pwhere P is the following set of productions: S-aSb|aSbb|X
Show_that the above grammar is ambiguous by finding a string with two different
5. Consider the following grammar G={S,A,B,C},{a,b,c},S,P where P is the following set of productions:
SAB|BCS|AaC AaA|C B-bbB|b CcC|x
SS
Use the algorithm that we discussed in class (and is given in the Linz textbook to produce an equivalent grammar G' that does not contain any A-productions. 6.Consider the following grammar G={S,A,B,C},{a,b,c},S,Pwhere P is the following set of productions:
SAC A-aAa|B BbB|b C-cC|c|B
Use the algorithm that we discussed in class (and is given in the Linz textbook to produce an equivalent grammar G'that does not contain any unit productions. You must show your work, including the variable dependency graph,not just give the final grammar.