Add, Sub,
Mul, Div, Mod,
Pow, Sqr,
- Cos, Sin, Atan,
+ Cos, Sin, Tan, Acos, Asin, Atan,
Log, Exp,
- Store, Recall, Disp,
+ Abs, Ceil, Floor,
+ Store, Recall, Inc, Dec, Disp,
Quit, Help,
- Ans, E, Pi
+ Ans, E, Pi,
+ Equal, Diff, Ge, Le, Gt, Lt,
+ And, Or, Not,
+ Cond, While, Prog
} func_t;
/* keyword type */
func_t func;
int nbops;
int offset;
- int prio;
+ float prio;
} keyword_t;
/* calculus element type */
-#define MAX_OPERANDS 10
typedef struct _element_t {
func_t func;
int nbops;
- struct _element_t *ops[MAX_OPERANDS];
+ struct _element_t **ops;
double value;
int prio;
} element_t;