correct switching context
[calc.git] / parser.h
index dc75776deaef52359a695b7627afe71cfde344da..9458aec699e7029931dc29398f7aa490f1a31a20 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -14,6 +14,7 @@ typedef enum {
     Pow, Sqr,
     Cos, Sin, Tan, Acos, Asin, Atan,
     Ln, Log, Exp,
+    Erfc, Erf,
     Abs, Ceil, Floor,
     Store, Recall, Inc, Dec, Disp, Mem, Clear,
     Quit, Help,
@@ -21,7 +22,8 @@ typedef enum {
     Equal, Diff, Ge, Le, Gt, Lt,
     And, Or, Not,
     Cond, While, Code, Print,
-    Prog, Call, List, Edit, Del
+    Prog, Call, List, Edit, Del,
+    Get, Length, Pop, Push, Put, Set, Show
 } func_t;
 
 /* keyword type */
@@ -56,6 +58,8 @@ typedef struct _workspace_t {
     double *storage;
     int storage_size;
     element_t *root;
+    double *stack;
+    int stack_size;
     char *string;
 } workspace_t;