Use STRING directly in the getIdentifierCharType() function.
This commit is contained in:
parent
e9ce6362af
commit
f4297fe851
@ -5,7 +5,7 @@ using enum tok::type;
|
||||
tok::type getIdentifierCharType(const char& Char) {
|
||||
if (isalpha(Char)) return IDENTIFIER;
|
||||
else if (isdigit(Char)) return NUMBER;
|
||||
else if (Char == '"') return STRING;
|
||||
else if (Char == STRING) return STRING;
|
||||
else return UNEXPECTED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user