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

1
tok.c
View File

@@ -35,6 +35,7 @@ const char *tok_str[TokKindEnumSize] = {
[TokAssign] = "=",
[TokDeclare] = ":=",
[TokIf] = "if",
[TokElse] = "else",
[TokWhile] = "while",
};