X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=parser.h;h=27bc1e1843c2fc9f4fbd027de38a3d59b5fe39bc;hb=c22798f02269ad4ee36c8f01c76f078ba8908bfa;hp=9458aec699e7029931dc29398f7aa490f1a31a20;hpb=a9a3da22ab3f1bf022fc02443494006bca82ed45;p=calc.git diff --git a/parser.h b/parser.h index 9458aec..27bc1e1 100644 --- a/parser.h +++ b/parser.h @@ -22,8 +22,9 @@ typedef enum { Equal, Diff, Ge, Le, Gt, Lt, And, Or, Not, Cond, While, Code, Print, - Prog, Call, List, Edit, Del, - Get, Length, Pop, Push, Put, Set, Show + Prog, Arg, Call, List, Edit, Del, + Get, Length, Pop, Push, Put, Set, Show, + Max, Mean, Median, Min, Order, Prod, Sum, Variance } func_t; /* keyword type */ @@ -57,6 +58,8 @@ typedef struct _workspace_t { double answer; double *storage; int storage_size; + double *argument; + int argument_size; element_t *root; double *stack; int stack_size;