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
very partial program functions
[calc.git]
/
parser.h
diff --git
a/parser.h
b/parser.h
index 2e3e6d464c6ffba87fab1c90f62ce41f5f9bf453..4907c67699a74dc69f5655065e5165df7ae8b072 100644
(file)
--- a/
parser.h
+++ b/
parser.h
@@
-20,7
+20,8
@@
typedef enum {
Ans, E, Pi,
Equal, Diff, Ge, Le, Gt, Lt,
And, Or, Not,
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 */
} func_t;
/* keyword type */
@@
-46,6
+47,15
@@
typedef struct _element_t {
#define ERROR_OP ((element_t *)(-1))
#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);
/* parser function */
void delelement (element_t *root);