Use STRING directly in the getIdentifierCharType() function.

This commit is contained in:
Username404 2021-08-10 14:01:20 +02:00
parent e9ce6362af
commit f4297fe851
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -5,7 +5,7 @@ using enum tok::type;
tok::type getIdentifierCharType(const char& Char) { tok::type getIdentifierCharType(const char& Char) {
if (isalpha(Char)) return IDENTIFIER; if (isalpha(Char)) return IDENTIFIER;
else if (isdigit(Char)) return NUMBER; else if (isdigit(Char)) return NUMBER;
else if (Char == '"') return STRING; else if (Char == STRING) return STRING;
else return UNEXPECTED; else return UNEXPECTED;
} }