-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjiegou.h
More file actions
48 lines (47 loc) · 712 Bytes
/
jiegou.h
File metadata and controls
48 lines (47 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 100
#define INt 0
#define REAl 1
#define STRING 2
#define Id 3
#define LIST 4
#define oldval 0
#define newval 1
#define slice 2
#define ele 3
#define error 4
#define kong 5
typedef struct Element{
int type;
union{
int i;
double r;
char str[MAX];
struct List* l;
};
struct Element* pre;
struct Element* next;
}element;
typedef struct List{
int len;
element* first;
element* last;
}list;
typedef struct Val{
char id[MAX];
int type;
int opr;
int step;
int weizhi;
element *begin;
char func[MAX];
union
{
int i;
double r;
char str[MAX];
list *l;
};
}val;