ref: afa081af77e19c67b8ded5203f8bed341af1cba6
dir: /cc2/cc2.h/
typedef struct {
union {
struct {
char type;
char storage;
} v;
struct {
short addr;
} l;
} u;
} Symbol;
typedef struct node {
char op;
char type;
int8_t complex;
int8_t addable;
union {
Symbol *sym;
int imm;
} u;
struct node *left, *right;
} Node;
enum nerrors {
EINTNUM, /* too much internal identifiers */
EEXTNUM, /* too much external identifiers */
ENODEOV, /* node overflow */
ESTACKO, /* stack overflow */
ESTACKU, /* stack underflow */
EEXPROV, /* expression overflow */
ETYPERR, /* incorrect type in expression */
EEXPBAL, /* expression not balanced */
ESYNTAX, /* syntax error */
ENUMERR
};
#define AUTO 'A'
#define REGISTER 'R'
#define STATIC 'S'
extern void error(unsigned nerror, ...);
extern void genaddable(Node *np);