]> mj.ucw.cz Git - umpf.git/blobdiff - brum.h
NUM token is dead
[umpf.git] / brum.h
diff --git a/brum.h b/brum.h
index 639bb59676cd8822023830c4bb1e3aa623b09966..59c43289c297466f4fc69107d7ad5f6f00523629 100644 (file)
--- a/brum.h
+++ b/brum.h
@@ -40,12 +40,8 @@ struct tree {
                        enum {
                                L_VAR,
                                L_CONST,
-                               L_NUM
                        } type;
-                       union {
-                               char* s;
-                               int n;
-                       } value;
+                       char* value;
                } leaf;
 
                struct {
@@ -73,3 +69,6 @@ int line;
 /* int.c */
 void print_tree(struct tree* t, int ind);
 void interp(struct tree* t);
+struct variable** new_var_hash(void);
+
+struct variable** var_hash;