trying to solve left recursion in an ambiguous grammar!

alfhead

Senior member
Jan 22, 2001
216
0
0
I'm in the process of writing a lexer and parser for the TIGER language. There is a section of my grammar that is ambiguous, and I'm having trouble solving the recursion. here's the grammar in ANTLR:

declaration_list : declaration
| declaration_list declaration
;

any help is appreciated.