17 |
|
#define CHAN 4 |
18 |
|
#define FUNC 5 |
19 |
|
#define ARG 6 |
20 |
< |
#define TICK 7 |
20 |
> |
#define CLKT 7 |
21 |
|
#define SYM 8 |
22 |
|
/* also: '+', '-', '*', '/', '^', '=', ':' */ |
23 |
|
|
29 |
|
} LIBR; /* a library function */ |
30 |
|
|
31 |
|
typedef struct epnode { |
32 |
– |
int type; /* node type */ |
33 |
– |
struct epnode *sibling; /* next child this level */ |
32 |
|
union { |
33 |
|
struct epnode *kid; /* first child */ |
34 |
|
double num; /* number */ |
43 |
|
struct vardef *next; /* next in hash list */ |
44 |
|
} *ln; /* link */ |
45 |
|
} v; /* value */ |
46 |
+ |
struct epnode *sibling; /* next child this level */ |
47 |
+ |
int type; /* node type */ |
48 |
|
} EPNODE; /* an expression node */ |
49 |
|
|
50 |
|
typedef struct vardef VARDEF; /* a variable definition */ |