add if and else, and fix nested loops (hopefully)

This commit is contained in:
r4
2021-12-23 19:58:00 +01:00
parent ef63742015
commit 97e8e32ebc
6 changed files with 87 additions and 14 deletions

2
ir.h
View File

@@ -87,7 +87,7 @@ void irtoks_init_long(IRToks *v);
void irtoks_init_short(IRToks *v);
void irtoks_term(IRToks *v);
void irtoks_app(IRToks *v, IRTok t);
void irtoks_app_irtoks(IRToks *v, IRToks *other);
void irtoks_eat_irtoks(IRToks *v, IRToks *other, size_t jmp_offset);
void print_ir(IRToks *v, const BuiltinFunc *builtin_funcs);