From 8a9e6b1bd3be1041792311a86d8aac68b659e891 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 31 Jan 2025 08:02:09 +0100 Subject: feat: First version, failing json parse string --- json.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 json.h (limited to 'json.h') diff --git a/json.h b/json.h new file mode 100644 index 0000000..588cb6b --- /dev/null +++ b/json.h @@ -0,0 +1,13 @@ +#ifndef JSON_H +#define JSON_H +#include "memory.h" +#include "string.h" +#include "vec.h" + +typedef struct { + int *integer; + Vec *array; + Str *string; +} JSON; +JSON JSON_parse(Arena *a, Str src); +#endif -- cgit v1.3