X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=parser.h;h=0b9233fa406a25834e6cb93c8acea5cc505f7272;hb=a67f1cfd7bb89dfd00cdc099651b81456ca4c327;hp=2e3e6d464c6ffba87fab1c90f62ce41f5f9bf453;hpb=143f91aef3937e135905985d21f31483bb16a3a2;p=calc.git diff --git a/parser.h b/parser.h index 2e3e6d4..0b9233f 100644 --- a/parser.h +++ b/parser.h @@ -20,7 +20,8 @@ typedef enum { Ans, E, Pi, Equal, Diff, Ge, Le, Gt, Lt, And, Or, Not, - Cond, While, Prog, Print + Cond, While, Code, Print, + Prog, Call, List, Edit, Del } func_t; /* keyword type */ @@ -42,10 +43,22 @@ typedef struct _element_t { double value; int prio; int hidden; + char *string; } element_t; #define ERROR_OP ((element_t *)(-1)) +/* workspace type */ + +typedef struct _workspace_t { + int id; + double answer; + double *storage; + int storage_size; + element_t *root; + char *string; +} workspace_t; + /* parser function */ void delelement (element_t *root);