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

2
tok.h
View File

@@ -12,6 +12,7 @@ typedef struct Type {
TypeFloat,
TypeInt,
TypeBool,
TypeChar,
} kind;
/*union {
@@ -25,6 +26,7 @@ typedef struct Value {
double Float;
ssize_t Int;
bool Bool;
char Char;
};
} Value;