recognize expressions

This commit is contained in:
ceriel
1990-09-07 14:56:24 +00:00
parent 477d7891f0
commit f7726082d3
15 changed files with 527 additions and 84 deletions

View File

@@ -3,11 +3,14 @@
#define MAXARGS 3
typedef struct tree {
int t_oper; /* operator */
short t_oper; /* tree operator */
short t_whichoper; /* expression operator */
t_addr t_address; /* some operators use an address */
int t_itemno; /* item number in status list */
union {
long tt_ival;
char *tt_sval;
double tt_fval;
struct {
struct idf *tt_idf;
char *tt_str;
@@ -17,6 +20,8 @@ typedef struct tree {
t_position tt_pos;
} t_xxxx;
#define t_ival t_xxxx.tt_ival
#define t_sval t_xxxx.tt_sval
#define t_fval t_xxxx.tt_fval
#define t_idf t_xxxx.tt_x.tt_idf
#define t_str t_xxxx.tt_x.tt_str
#define t_sc t_xxxx.tt_x.tt_scope