CE improved tokenizer
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m14s

This commit is contained in:
2026-03-01 13:42:04 +01:00
parent a5d5e7d6a4
commit e61545c4cf
3 changed files with 120 additions and 41 deletions

View File

@@ -90,3 +90,31 @@ char* strcat (char* dest, const char* src) {
return rdest;
}
int isalnum (int c) { return isalpha (c) || isdigit (c); }
int isalpha (int c) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); }
int iscntrl (int c) { return (c >= 0 && c <= 32) || (c == 127); }
int isdigit (int c) { return (c >= '0' && c <= '9'); }
int isgraph (int c) { return (c > 32 && c <= 126); }
int islower (int c) { return (c >= 'A' && c <= 'z'); }
int isprint (int c) { return (c >= 32 && c <= 126); }
int ispunct (int c) { return isgraph (c) && !isalnum (c); }
int isspace (int c) {
return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v');
}
int isupper (int c) { return (c >= 'A' && c <= 'Z'); }
int isxdigit (int c) { return isdigit (c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'); }
int isascii (int c) { return (c >= 0 && c <= 127); }
int isblank (int c) { return (c == ' ' || c == '\t'); }