hello guys i am new in cup parser, my problem is that in the define of trans in my grammar i have empty trans and my question is, is that correct?
for example, in my grammar i have
INIT -> A B -c-
A -> A -a-
| empty
B -> B -b-
| empty
with A, B as no terminals and a, b, c as terminals
i tried to make a alternative gramar but is extend for the language that i try to parse without the empty trans
how can i program that in cup to make the parser? thanks for all your contributions and help...