#ifndef __PARSER_H__
#define __PARSER_H__
+/* global variables */
+
+extern double answer;
+
/* function type */
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,
+ And, Or, Not
} func_t;
/* keyword type */
func_t func;
int nbops;
int offset;
- int prio;
+ float prio;
} keyword_t;
/* calculus element type */