diff --git a/src/Lexer.c b/src/Lexer.c index 62e823a..f1af0ea 100644 --- a/src/Lexer.c +++ b/src/Lexer.c @@ -179,6 +179,14 @@ static int ReadKeyword(char* Str) { break; case 'i': + // alias char, int and long types + + if(!strcmp(Str, "i8")) + return TY_CHAR; + if(!strcmp(Str, "i32")) + return TY_INT; + if(!strcmp(Str, "i64")) + return TY_LONG; if(!strcmp(Str, "int")) return TY_INT;