From a97b6602a0549881be31cb58b0ca947f687cb244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind?= Date: Sat, 12 Mar 2022 19:26:35 +0100 Subject: [PATCH] fixed bug with being to agressive --- exercises/03/vslc/src/tree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/exercises/03/vslc/src/tree.c b/exercises/03/vslc/src/tree.c index 3eacc7c..cc514fb 100644 --- a/exercises/03/vslc/src/tree.c +++ b/exercises/03/vslc/src/tree.c @@ -154,8 +154,8 @@ prune_children(node_t **simplified, node_t *root) switch (root->type) { case GLOBAL: - case ARGUMENT_LIST: - case PARAMETER_LIST: + //case ARGUMENT_LIST: + //case PARAMETER_LIST: case STATEMENT: case PRINT_ITEM: case PRINT_STATEMENT: @@ -287,7 +287,6 @@ flatten(node_t **simplified, node_t *root) *simplified = result; } - static void simplify_tree ( node_t **simplified, node_t *root ) { @@ -302,4 +301,4 @@ simplify_tree ( node_t **simplified, node_t *root ) flatten(&root, root); *simplified = root; -} +} \ No newline at end of file