Commit Graph
21 Commits
Author SHA1 Message Date
abdelrahman 7cb4b28da8 Store the current character and add more handlers after the state
transition
2023-07-30 19:18:10 +01:00
abdelrahman ec6df32839 Start implementing using the state transition table in the lexer 2023-07-30 11:47:26 +01:00
abdelrahman 6c454fbb8e Add char_type function to lexer.c but exclude it from build 2023-07-25 08:55:46 +01:00
Abdelrahman Said 9cba0172b9 Update is_valid_hex_char 2023-07-12 22:33:58 +01:00
abdelrahman 135a6da54c Ensure negative numbers are handled properly 2023-07-01 15:12:21 +01:00
abdelrahman 10597c0ed7 Remove validate_json 2023-07-01 15:05:41 +01:00
abdelrahman 7e4d82888a Updated print_token function 2023-07-01 04:43:29 +01:00
abdelrahman b6d4a1f218 Ensure the functions declared in lexer.c are static 2023-06-28 21:44:04 +01:00
abdelrahman 740d9b6566 Combine TK_TRUE and TK_FALSE into TK_BOOL 2023-06-28 21:43:35 +01:00
abdelrahman 1e510411dc get_next_token returns result which includes possible error and token 2023-06-27 22:23:16 +01:00
Abdelrahman Said 55ca87c425 Ensure token's line and column number are printed properly on macOS and
Linux
2023-06-26 07:32:42 +01:00
Abdelrahman Said 9963527db0 Ensure token's integer value is printed properly on macOS and Linux 2023-06-26 07:31:19 +01:00
abdelrahman 84533ad643 Ensure lexer returns correct token for numerical values 2023-06-24 03:41:22 +01:00
abdelrahman fd525e26a6 Update print format specifier 2023-06-22 00:37:59 +01:00
Abdelrahman Said efe07a3c60 Add the get_next_token function 2023-06-22 00:13:05 +01:00
abdelrahman 1b56aaa185 Started implementing the get_next_token function 2023-06-20 23:37:56 +01:00
abdelrahman e4d161d79d Plan work for get_next_token function 2023-06-20 21:56:59 +01:00
Abdelrahman Said 76620b593a Add dstr_resize and rename the dstring functions 2023-06-19 08:33:02 +01:00
abdelrahman 31e19a50fc Save string and number values for tokenisation 2023-06-18 22:57:08 +01:00
abdelrahman f0043a691c Rename lexer string functions 2023-06-18 22:08:47 +01:00
abdelrahman 0095d8fe61 Rename lexer_states to lexer 2023-06-18 21:39:50 +01:00