TCPU/src/compiler/token.c
2024-11-21 09:32:53 +05:00

16 lines
247 B
C

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