reader: implement read_vec and setup errors for random closed brackets

This commit is contained in:
2026-02-11 10:26:55 +00:00
committed by oreodave
parent 5f05a6a108
commit a4fb48a863
2 changed files with 47 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ typedef enum
READ_ERR_OK = 0,
READ_ERR_EOF,
READ_ERR_EXPECTED_CLOSED_BRACE,
READ_ERR_EXPECTED_CLOSED_SQUARE_BRACKET,
READ_ERR_UNEXPECTED_CLOSED_BRACE,
READ_ERR_UNEXPECTED_CLOSED_SQUARE_BRACKET,
READ_ERR_UNKNOWN_CHAR,
} read_err_t;