IR jmp and scopes

This commit is contained in:
r4
2021-12-21 13:59:08 +01:00
parent 6080901842
commit 005309d1eb
5 changed files with 33 additions and 7 deletions

5
ir.h
View File

@@ -11,6 +11,7 @@ enum IRInstr {
IRMul,
IRDiv,
IRPrint,
IRJmp,
IRJnz,
IRInstrEnumSize,
};
@@ -56,6 +57,10 @@ typedef struct IRTok {
IRArgs *args;
size_t args_size;
} Print;
struct {
size_t iaddr;
} Jmp;
struct {
size_t iaddr;