partial priority solution
[calc.git] / parser.h
index 7d486a330c764bc3aecd2bbe32e01eb79a85b5bf..71fd33ffb34b8c8aff27c1a6e7dfb9217b960bcb 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -19,6 +19,7 @@ typedef struct _keyword_t {
     func_t func;
     int nbops;
     int offset;
+    int prio;
 } keyword_t;
 
 /* calculus element type */
@@ -29,6 +30,7 @@ typedef struct _element_t {
     int nbops;
     struct _element_t *ops[MAX_OPERANDS];
     float value;
+    int prio;
 } element_t;
 
 #define ERROR_OP ((element_t *)(-1))