On Fri Nov 11 14:44:47 2022 +0000, Francisco Casas wrote:
That produces shift/reduce and reduce/reduce conflicts. I can't say that I understand why; I am spending some time reading about the Bison algorithm.
Ah, I attempted to do: ``` declaration_statement_list: %empty | declaration_statement | declaration_statement_list declaration_statement ``` so there where two possible reductions for the first declaration statement.
Removing the `| declaration_statement` rule works: ``` declaration_statement_list: %empty | declaration_statement_list declaration_statement ``` So I am going for that.