This commit is contained in:
2024-11-21 09:32:53 +05:00
parent 1cae800a66
commit 1729070b80
12 changed files with 425 additions and 160 deletions

15
src/compiler/token.c Normal file
View File

@@ -0,0 +1,15 @@
#include "token.h"
static cstr TokenType_str[] = {
"Unset",
"SingleLineComment",
"MultiLineComment",
"Label",
"Instruction",
"Argument",
"Data",
};
cstr TokenType_toString(TokenType t){
return TokenType_str[t];
}