]> mj.ucw.cz Git - umpf.git/blobdiff - cond.y
NUM token is dead
[umpf.git] / cond.y
diff --git a/cond.y b/cond.y
index a9d28d728719c9e3d8fdd52c196a462dba633deb..7355a429a88bb4b9f4ef9c112fee39f165ab1d8b 100644 (file)
--- a/cond.y
+++ b/cond.y
@@ -143,26 +143,21 @@ ass:
 
                                        $$->pt.ass.left = tree_malloc(ST_LEAF);
                                        $$->pt.ass.left->pt.leaf.type = L_VAR;
-                                       $$->pt.ass.left->pt.leaf.value.s = $1;
+                                       $$->pt.ass.left->pt.leaf.value = $1;
 
                                        $$->pt.ass.right = $3;
                                }
 ;
 
-leaves:                NUM     { 
-                               $$ = tree_malloc(ST_LEAF);
-                               $$->pt.leaf.type = L_NUM;
-                               $$->pt.leaf.value.n = $1;
-                       }
-               | VAR   {
+leaves:                | VAR   {
                                $$ = tree_malloc(ST_LEAF);
                                $$->pt.leaf.type = L_VAR;
-                               $$->pt.leaf.value.s = $1;
+                               $$->pt.leaf.value = $1;
                        }
                | CONST { 
                                $$ = tree_malloc(ST_LEAF);
                                $$->pt.leaf.type = L_CONST;
-                               $$->pt.leaf.value.s = $1;
+                               $$->pt.leaf.value = $1;
                        }
 ;