diff --git a/include/lexer/lexer.h b/include/lexer/lexer.h index b9e2c74..808db9d 100644 --- a/include/lexer/lexer.h +++ b/include/lexer/lexer.h @@ -7,6 +7,8 @@ #define VALID_JSON true #define INVALID_JSON false +typedef const char *const str_view_t; + typedef enum { TK_L_BRACE, TK_R_BRACE, @@ -27,6 +29,7 @@ typedef union { void *no_val; i64 num_int; f64 num_frac; + str_view_t string; } token_value_t; typedef struct {