correct switching context
[calc.git] / parser.h
index 95ee0e594176d6ef31e02e238a2ca00fb6c83ae6..9458aec699e7029931dc29398f7aa490f1a31a20 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -22,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 */
@@ -57,6 +58,8 @@ typedef struct _workspace_t {
     double *storage;
     int storage_size;
     element_t *root;
+    double *stack;
+    int stack_size;
     char *string;
 } workspace_t;