aboutsummaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'json.h')
-rw-r--r--json.h13
1 files changed, 13 insertions, 0 deletions
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