X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=parser.h;h=27bc1e1843c2fc9f4fbd027de38a3d59b5fe39bc;hb=c22798f02269ad4ee36c8f01c76f078ba8908bfa;hp=8307c887517586efc48cca1a4c79343d04addc55;hpb=05aabb97dcdb2a87f0ddebe5a32391101da318eb;p=calc.git diff --git a/parser.h b/parser.h index 8307c88..27bc1e1 100644 --- a/parser.h +++ b/parser.h @@ -13,7 +13,8 @@ typedef enum { Mul, Div, Mod, Pow, Sqr, Cos, Sin, Tan, Acos, Asin, Atan, - Log, Exp, + Ln, Log, Exp, + Erfc, Erf, Abs, Ceil, Floor, Store, Recall, Inc, Dec, Disp, Mem, Clear, Quit, Help, @@ -21,7 +22,9 @@ typedef enum { Equal, Diff, Ge, Le, Gt, Lt, And, Or, Not, Cond, While, Code, Print, - Prog, Call, List, Edit, Del + 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 */ @@ -43,6 +46,7 @@ typedef struct _element_t { double value; int prio; int hidden; + char *string; } element_t; #define ERROR_OP ((element_t *)(-1)) @@ -54,7 +58,12 @@ typedef struct _workspace_t { double answer; double *storage; int storage_size; + double *argument; + int argument_size; element_t *root; + double *stack; + int stack_size; + char *string; } workspace_t; /* parser function */