summaryrefslogtreecommitdiff
path: root/filter/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-02-17 11:29:48 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-02-17 11:29:48 +0100
commit14f6aca48037a0653e6bcfa27a4da48e8f962198 (patch)
treebfe70bcd49cc3a157f55287621684d5e65ad00e5 /filter/config.Y
parentdca75fd7c207f0bfc627cb6b74a484da3b27e05f (diff)
Changes right recursion to left in the grammar of the case expression.
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y13
1 files changed, 7 insertions, 6 deletions
diff --git a/filter/config.Y b/filter/config.Y
index f8674e5c..fcbee714 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -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;
}
;