add char literals

This commit is contained in:
r4
2021-12-23 21:26:53 +01:00
parent a0842424ec
commit d67008cfbf
5 changed files with 58 additions and 5 deletions

3
ir.c
View File

@@ -84,6 +84,9 @@ static void print_val(const Value *v) {
case TypeBool:
printf("%s", v->Bool ? "true" : "false");
break;
case TypeChar:
printf("'%c'", v->Char);
break;
default:
printf("(unknown type)");
break;