fix comparison operator priority
[calc.git] / parser.h
index 619ebac68b87c2b8a9f447d60608ffa7218fae0b..fb09da26debb0caf909dfb211775af657ec765de 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -1,6 +1,10 @@
 #ifndef __PARSER_H__
 #define __PARSER_H__
 
+/* global variables */
+
+extern double answer;
+
 /* function type */
 
 typedef enum {
@@ -10,8 +14,10 @@ typedef enum {
     Pow, Sqr,
     Cos, Sin, Atan,
     Log, Exp,
+    Store, Recall, Disp,
     Quit, Help,
-    E, Pi
+    Ans, E, Pi,
+    Equal, Diff, Ge, Le, Gt, Lt
 } func_t;
 
 /* keyword type */