<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/cudl.h
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2021-10-04 14:11:29 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2021-10-04 14:11:29 +0100
commit14e929a7596baa7ee9da401975c521aa0e93c3b4 (patch)
tree90459c8dd3b5756d2da409e8dbfdd19420e7e882 /cudl.h
parentd973b4b8eaaa5e7f1d10f9f02069c6d7bde25dcc (diff)
downloadcudl-14e929a7596baa7ee9da401975c521aa0e93c3b4.tar
Add string and map parsing. Currently no support for the schema variants of the syntax for these types
Diffstat (limited to 'cudl.h')
-rw-r--r--cudl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/cudl.h b/cudl.h
index a96cc45..df69632 100644
--- a/cudl.h
+++ b/cudl.h
@@ -31,16 +31,24 @@ enum {
CUDL_TAG_NULL,
CUDL_TAG_BOOL,
CUDL_TAG_ARRAY,
+ CUDL_TAG_MAP,
+ CUDL_TAG_STRING,
};
enum {
CUDL_OK = 0,
CUDL_ERR_OUT_OF_MEMORY,
- CUDL_ERR_EXPECTED_VALUE,
CUDL_ERR_READING,
+ CUDL_ERR_EXPECTED_VALUE,
CUDL_ERR_EXPECTED_BOOL_OR_NULL,
+ CUDL_ERR_EXPECTED_ESCAPE_SEQUENCE,
+ CUDL_ERR_EXPECTED_MAP_KEY,
+ CUDL_ERR_EXPECTED_COLON,
CUDL_ERR_UNMATCHED_BRACK,
+ CUDL_ERR_UNMATCHED_BRACE,
+ CUDL_ERR_UNMATCHED_QUOTE,
CUDL_ERR_UNRECOGNISED_VALUE,
+ CUDL_ERR_UNRECOGNISED_UNICODE,
};
extern int cudl_err;