X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=parser.h;fp=parser.h;h=4907c67699a74dc69f5655065e5165df7ae8b072;hb=c7cbb833c65805634f6e9832b49e4a4680a4a4a6;hp=2e3e6d464c6ffba87fab1c90f62ce41f5f9bf453;hpb=632f0d031f6f1c0bd0b0b6a7107d0fcd542d78e1;p=calc.git diff --git a/parser.h b/parser.h index 2e3e6d4..4907c67 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, Prog, Print, + Prog, Call, List, Edit, Del } func_t; /* keyword type */ @@ -46,6 +47,15 @@ typedef struct _element_t { #define ERROR_OP ((element_t *)(-1)) +/* workspace type */ + +typedef struct _workspace_t { + int id; + double answer; + double *storage; + element_t *root; +} workspace_t; + /* parser function */ void delelement (element_t *root);