From 14e929a7596baa7ee9da401975c521aa0e93c3b4 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Mon, 4 Oct 2021 14:11:29 +0100 Subject: Add string and map parsing. Currently no support for the schema variants of the syntax for these types --- cudl.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'cudl.h') 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; -- cgit v1.2.3