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.
declaration_list : declaration
| declaration_list declaration
;
any help is appreciated.