Re: Removing the shift/reduce conflict in the parser

2020-04-27 Thread Chet Ramey
On 4/26/20 8:14 PM, Dale R. Worley wrote: > I've been annoyed by the fact that parse.y has a shift/reduce conflict. > It stems from the grammar for a function declaration: Thanks for the report and patch. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars

Removing the shift/reduce conflict in the parser

2020-04-26 Thread Dale R. Worley
I've been annoyed by the fact that parse.y has a shift/reduce conflict. It stems from the grammar for a function declaration: function_def: WORD '(' ')' newline_list function_body | FUNCTION WORD '(' ')' newline_list function_body | FUNCTION WORD newline_list function