lexer
This commit is contained in:
15
src/compiler/token.c
Normal file
15
src/compiler/token.c
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user