partial while feature
[calc.git] / parser.h
index 10fec970e2bb0c055151b4b01bac1f20d6f485ff..49acc2080005a8c4cef2f635c71010889f71d09a 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -14,8 +14,12 @@ typedef enum {
     Pow, Sqr,
     Cos, Sin, Atan,
     Log, Exp,
+    Store, Recall, Inc, Dec, Disp,
     Quit, Help,
-    Ans, E, Pi
+    Ans, E, Pi,
+    Equal, Diff, Ge, Le, Gt, Lt,
+    And, Or, Not,
+    Cond, While
 } func_t;
 
 /* keyword type */
@@ -25,7 +29,7 @@ typedef struct _keyword_t {
     func_t func;
     int nbops;
     int offset;
-    int prio;
+    float prio;
 } keyword_t;
 
 /* calculus element type */