shithub: spirva

ref: a0d30aba763788d63e47878756cbd4e5cc6f6798
dir: spirva/asm.h

View raw version
typedef struct Inst Inst;
struct Inst {
	int type;
	union {
		Symbol *var;
		uint op;
		double f;
		int i;
		char *str;
	};
};

extern int debug;

void a_result(Symbol *var);
void a_op(uint op);
void a_var(Symbol *var);
void a_float(double f);
void a_int(int i);
void a_str(char *str);
void a_keyword(char *str);

void a_init(void);
void assemble(void);