aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorc+12023-05-18 13:28:04 -0400
committerc+12023-05-18 13:28:04 -0400
commitca2fbad75901c661d8d5e1dea574b8074dbc56ba (patch)
tree318244e62e9747f347b9f2bcc33ebaa7fb1d85ae /src/include
parent1b6a28f6a777350ae7e04d06a48cba62a09b2dfb (diff)
moar
Diffstat (limited to 'src/include')
-rw-r--r--src/include/token.h11
1 files changed, 8 insertions, 3 deletions
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