From 62f45b6a7f4ea69d49a12e536a9df9099f0a0680 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Tue, 20 Jun 2023 21:55:59 +0100 Subject: [PATCH] Add str_view_t --- include/lexer/lexer.h | 3 +++ 1 file changed, 3 insertions(+) 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 {