hopefully soone can help me with this lol , this grammar im looking at is kinda tricy and i feel like theres something im missing. im trying to find the first and follow of the below grammar

S -> [] | [S] | SS

For the first I got:

First(S) = [
and

follow(S) = $,[

something doesnt feel right , like i know theres something with the last production (SS) that im missing.

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.