Commit 14f6aca4 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Changes right recursion to left in the grammar of the case expression.

parent dca75fd7
......@@ -273,16 +273,17 @@ fprefix_set:
;
switch_body: /* EMPTY */ { $$ = NULL; }
| set_item ':' cmds switch_body {
$$ = $1;
$$->data = $3;
$$->left = $4;
| switch_body set_item ':' cmds {
$$ = $2;
$$->data = $4;
$$->left = $1;
}
| ELSE ':' cmds {
| switch_body ELSE ':' cmds {
$$ = f_new_tree();
$$->from.type = T_VOID;
$$->to.type = T_VOID;
$$->data = $3;
$$->data = $4;
$$->left = $1;
}
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment