aboutsummaryrefslogtreecommitdiff
path: root/src/token.c
diff options
context:
space:
mode:
authorc+12023-05-22 15:58:13 -0400
committerc+12023-05-22 15:58:13 -0400
commitd83d37ecd5682252f85af099c3353525f1cb1394 (patch)
tree150f6f0ca3a9c5c217a86cd50d84ea170026537e /src/token.c
parent45b152974bb6965209287945fd706d3b0c2df9ba (diff)
yay :)
Diffstat (limited to 'src/token.c')
-rw-r--r--src/token.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/token.c b/src/token.c
index 9ea2ccf..432d44f 100644
--- a/src/token.c
+++ b/src/token.c
@@ -37,6 +37,16 @@ int char_could_split_keyword(char* character) {
}
}
+int char_could_start_int(char* character) {
+ for (int i = 0; i < 10; ++ i) {
+ if (TOKEN_CHAR_FIRST_CHAR_INT[i] == *character) {
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
int char_can_ignore(char* character) {
for (int i = 0; i < TOKEN_CHAR_IGNORE_LEN; ++ i) {
if (TOKEN_CHAR_IGNORE[i] == *character) {