Pow, Sqr,
Cos, Sin, Atan,
Log, Exp,
- Store, Recall, Disp,
+ Store, Recall, Inc, Dec, Disp,
Quit, Help,
Ans, E, Pi,
Equal, Diff, Ge, Le, Gt, Lt,
And, Or, Not,
- Cond
+ Cond, While, Prog
} func_t;
/* keyword type */
/* 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;