I'm very new to this topic so not so good. I'm trying to right this to be right recursive:
Question (1)
A ---> A + B
A ---> C
B ---> B + C
B ---> C
C ---> (A)
C ---> integer
Would it be something like this:
A ---> BA'
A' ---> +BA'
A ---> C
B ---> CB'
B' ---> +CB'
B ---> C
C ---> (A)
C ---> integer
Question (2)
S ---> (L) | a
L ---> L, S | S
This one I really don't have a clue on. I'm assuming that it is the same as writing:
S ---> (L)
s ---> a
L ---> L, S (dont know what the comma means, normally its a terminal symbol)
L ---> S
If someone can please give me a model answer which I can then follow and analyse to get a better understanding. Thanks!