aboutsummaryrefslogtreecommitdiff
path: root/json.h
blob: 44b064efddb1d6b6ffe94b8fd9351a5d5509feaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#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, char *src);
JSON JSON_Int(Arena *a, int val);
#endif