Add the get_next_token function

This commit is contained in:
Abdelrahman Said
2023-06-22 00:13:05 +01:00
parent 7845ad4b06
commit efe07a3c60
4 changed files with 184 additions and 258 deletions

View File

@@ -15,8 +15,6 @@ typedef enum {
TK_R_BRACE,
TK_L_BRACKET,
TK_R_BRACKET,
TK_COLON,
TK_COMMA,
TK_NULL,
TK_TRUE,
TK_FALSE,
@@ -47,5 +45,6 @@ void lexer_free(lexer_t **lexer);
token_t get_next_token(lexer_t *lexer, const char *text);
bool validate_json(char *json);
void print_token(token_t token);
#endif // !LEXER_STATES_H