Reuse isWhitespace and isNewline, also refactoring readAtFile

This commit is contained in:
Rangi42
2025-08-05 13:46:53 -04:00
parent 98c5c7f776
commit 504a45a4ed
5 changed files with 34 additions and 61 deletions

View File

@@ -253,14 +253,6 @@ static UpperMap<int> const keywordDict{
static auto ldio = keywordDict.find("LDIO");
static bool isWhitespace(int c) {
return c == ' ' || c == '\t';
}
static bool isNewline(int c) {
return c == '\r' || c == '\n';
}
static LexerState *lexerState = nullptr;
static LexerState *lexerStateEOL = nullptr;