shithub: scc

ref: dfd6b350e13d9915b819b92c890052d7474188c5
dir: /cc2/cc2.h/

View raw version

enum nerrors {
	ELNLINE,       /* line too long */
	EFERROR,       /* error reading from file:%s*/
	ENUMERR
};

typedef struct node Node;

struct node {
	unsigned char op;
};

/* main.c */
extern void error(unsigned nerror, ...);

/* parse.c */
extern void parse(void);

/* optm.c */
extern void optimize(void);

/* cgen.c */
extern void addable(void);
extern void generate(void);

/* peep.c */
extern void peephole(void);

/* code.c */
extern void writeout(void);