add logical operators
[calc.git] / parser.h
index fb09da26debb0caf909dfb211775af657ec765de..80fbd984ca68fe213910df0496f3a7d112908f74 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -17,7 +17,8 @@ typedef enum {
     Store, Recall, Disp,
     Quit, Help,
     Ans, E, Pi,
-    Equal, Diff, Ge, Le, Gt, Lt
+    Equal, Diff, Ge, Le, Gt, Lt,
+    And, Or, Not
 } func_t;
 
 /* keyword type */
@@ -27,7 +28,7 @@ typedef struct _keyword_t {
     func_t func;
     int nbops;
     int offset;
-    int prio;
+    float prio;
 } keyword_t;
 
 /* calculus element type */