From ca2fbad75901c661d8d5e1dea574b8074dbc56ba Mon Sep 17 00:00:00 2001 From: c+1 Date: Thu, 18 May 2023 13:28:04 -0400 Subject: moar --- src/include/token.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/token.h b/src/include/token.h index bca00b1..45154f4 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -28,13 +28,18 @@ typedef struct TOKEN_STRUC { char* value; } token_t; -int char_could_start_keyword(char* character); -int char_could_split_keyword(char* character); - char TOKEN_DEFNAME_FIRST_CHAR_ALLOWED_CHARS[] = "abcdefghijklmnopqrstuvwxyz_"; // chars that can begin a var name +int TOKEN_DEFNAME_FIRST_CHAR_ALLOWED_CHARS_LEN = 27; // maximum efficiency! char TOKEN_DEFNAME_SPLIT_CHAR_ALLOWED_CHARS[] = "1234567890_-"; // chars that can be in the rest of the var name, // not including the ones already defined to begin // one. +int TOKEN_DEFNAME_SPLIT_CHAR_ALLOWED_CHARS_LEN = 12; +char TOKEN_CHAR_IGNORE[] = " \t\n\r"; // characters to ignore while parsing tokens +int TOKEN_CHAR_IGNORE_LEN = 4; + +int char_could_start_keyword(char* character); +int char_could_split_keyword(char* character); +int char_can_ignore(char* character); #endif -- cgit v1.2.3