0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-02 20:09:16 +01:00
Commit graph

91 commits

Author SHA1 Message Date
Jason Volk
db9e5f3b78 ircd::json: Improve validator grammar; clarify magic number. 2018-03-28 22:19:26 -07:00
Jason Volk
4a1ca1a525 ircd::json: Deinline output validators from template. 2018-03-28 22:17:09 -07:00
Jason Volk
7ad99ab387 ircd::json: Add why() to specifically return err str from valid(). 2018-03-28 22:17:09 -07:00
Jason Volk
f01fdc0528 ircd::json: Return non-magic size; return stringify views of written data. 2018-03-27 21:44:01 -07:00
Jason Volk
fb58bdf7de ircd::json: Granular stringify size assertions. 2018-03-27 21:44:01 -07:00
Jason Volk
49cb8fee1a ircd::json: Assertions for empty object iterator equality. 2018-03-27 21:44:01 -07:00
Jason Volk
1436ce36c1 ircd::json: Checkpoint output escape echo. 2018-03-27 21:44:01 -07:00
Jason Volk
968ef4115c ircd: Fix signage related. 2018-03-23 23:19:53 -07:00
Jason Volk
503ab33c38 ircd::json: Stricter escape conditions in string values. 2018-03-21 18:47:56 -07:00
Jason Volk
df7b6f0ca9 ircd::json: Extend escaped unicode codepoint target. 2018-03-21 17:12:48 -07:00
Jason Volk
0e7ef9ef7d ircd::json: Fix value type LITERAL serialize/stringify consistency. 2018-03-21 17:12:48 -07:00
Jason Volk
502675e527 ircd::json: Minor cleanup of function static grammar type decls. 2018-03-21 17:12:48 -07:00
Jason Volk
b949a1f3dc ircd::json: Checkpoint output grammar cleanup. 2018-03-21 17:12:48 -07:00
Jason Volk
99608b6bd2 ircd::json: Sort json::member vectors on stringify; w/ recursive reentrance. 2018-03-21 13:55:58 -07:00
Jason Volk
0483a381f8 ircd::json: Move member.h definitions to proper dependency ordered location. 2018-03-21 13:49:00 -07:00
Jason Volk
df605d5646 ircd::json: Add functions to determine if object members are sorted. 2018-03-21 12:33:43 -07:00
Jason Volk
d01aef9c35 ircd::json: Sort object members for stringify; recursive reentrant tls. 2018-03-21 01:09:41 -07:00
Jason Volk
615ccdc426 ircd::json: Hello, goodbye. 2018-03-20 23:51:14 -07:00
Jason Volk
fef1c0b1b8 ircd::json: Add stringify vector of object::member. 2018-03-20 23:40:31 -07:00
Jason Volk
53a4fae580 ircd::json: Recursive output grammar. 2018-03-20 17:39:57 -07:00
Jason Volk
7a9bb89506 ircd::json: All output through the generator. 2018-03-20 17:39:57 -07:00
Jason Volk
09d971fa9e ircd::json: Make print_error an assertion; improve output validation messages. 2018-03-20 16:31:02 -07:00
Jason Volk
b169ac1ce8 ircd::json: Whitespace monoid. 2018-03-18 21:17:54 -07:00
Jason Volk
931fe2439e ircd::json: Introduce the json::stack device. 2018-03-17 21:40:27 -07:00
Jason Volk
373a791158 ircd::json: Limit IOV size and take stringify buffer off-stack. 2018-03-17 11:53:21 -07:00
Jason Volk
30eb9178bd ircd: Consolidate spirit typedefs from all relevant units into spirit.h. 2018-03-17 10:44:40 -07:00
Jason Volk
78d5825315 ircd::json: Deeper copying on value copy ctor. 2018-03-12 11:14:11 -07:00
Jason Volk
8c02823d49 ircd: Tweak client error handling; fwddecl json::expectation_failure. 2018-03-08 07:40:41 -08:00
Jason Volk
2a7d7fa8c8 ircd::json: Value stringify semantic fixes. 2018-02-28 03:12:17 -08:00
Jason Volk
5a16a5ded9 ircd::json: Indicate static duration for these printer closures. 2018-02-18 22:35:35 -08:00
Jason Volk
f8e5ca20d3 ircd::json: Remove the double-indirected member stringify. 2018-02-18 22:35:35 -08:00
Jason Volk
89ca9c9b24 ircd::json: Allow multiple attributes to the printer; simplify printer stack. 2018-02-18 22:35:27 -08:00
Jason Volk
42a22a6c79 ircd::json: Use consumption protocol for create_string closure. 2018-02-18 22:22:38 -08:00
Jason Volk
e149f38d79 ircd::json: This has to be more relaxed for now here. 2018-02-17 16:17:59 -08:00
Jason Volk
a66f0f9423 ircd::json: Update the generator grammar. 2018-02-13 21:14:52 -08:00
Jason Volk
be624ca7f6 Update Copyrastafaris. 2018-02-05 21:24:34 -08:00
Jason Volk
a20e2c2319 ircd::json: Minor cleanup; note todo for exp. 2018-01-30 13:37:13 -08:00
Jason Volk
52ee74fe55 ircd::json: Place missing break; cleanup branches. 2018-01-26 19:27:12 -08:00
Jason Volk
429e5e1dcf ircd::json: Fix treatment of already stringified number. 2018-01-24 07:30:36 -08:00
Jason Volk
ac27005cd7 ircd::json: Move these outside of value class. 2018-01-23 21:18:47 -08:00
Jason Volk
89ccdaa510 ircd::json: Proper throw when iov::at() key is not found. 2018-01-23 15:07:05 -08:00
Jason Volk
90ea730a04 ircd::json: Add recursion depth checking. 2018-01-18 06:05:56 -08:00
Jason Volk
db24cef649 ircd::json: Minor cleanup/formatting. 2017-12-24 21:54:59 -07:00
Jason Volk
42246d8d5f ircd::json: Fix an empty string test. 2017-12-12 14:59:40 -07:00
Jason Volk
219d1ba245 ircd::json: Fix empty value stringification cases; Fix serialized number printing. 2017-11-30 11:23:47 -08:00
Jason Volk
2fa64e5b87 ircd::json: Update grammars: string escapes; generalize rules without raw[] if possible. 2017-11-30 11:23:47 -08:00
Jason Volk
d354991c68 ircd::json: Stub a canonize() function which isn't complete yet. 2017-11-30 11:23:47 -08:00
Jason Volk
0e2fe01426 ircd::json: Add a validator suite. 2017-11-30 11:23:46 -08:00
Jason Volk
78e8a3668d ircd::json: Add missing stringify participant; minor cleanup. 2017-11-30 11:23:44 -08:00
Jason Volk
7f97ffdede ircd::json: Add support for parsing a vector of objects (non-standard). 2017-11-30 11:23:42 -08:00