Soft'N'Design Software
/
projects
/
calc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extend coverage test
[calc.git]
/
parser.h
diff --git
a/parser.h
b/parser.h
index 95ee0e594176d6ef31e02e238a2ca00fb6c83ae6..27bc1e1843c2fc9f4fbd027de38a3d59b5fe39bc 100644
(file)
--- a/
parser.h
+++ b/
parser.h
@@
-22,7
+22,9
@@
typedef enum {
Equal, Diff, Ge, Le, Gt, Lt,
And, Or, Not,
Cond, While, Code, Print,
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 */
} func_t;
/* keyword type */
@@
-56,7
+58,11
@@
typedef struct _workspace_t {
double answer;
double *storage;
int storage_size;
double answer;
double *storage;
int storage_size;
+ double *argument;
+ int argument_size;
element_t *root;
element_t *root;
+ double *stack;
+ int stack_size;
char *string;
} workspace_t;
char *string;
} workspace_t;