Commit Graph

190 Commits

Author SHA1 Message Date
9a5b94e25d Remove redundant nonterminals 2025-05-19 17:02:45 -04:00
7a5b538132 Avoid some checks for len == 0 2025-05-19 16:58:01 -04:00
5df17a0d47 Consume whitespace in loop 2025-05-19 16:27:13 -04:00
ff00f3eead Fix bogus assert 2025-05-19 16:21:31 -04:00
2b604a4f89 Add to corpus 2025-05-19 16:19:21 -04:00
be8187b2fd Fix issue with fuzz test
Previously an implementation could never call on_begin_number or
on_end_number and still pass
2025-05-19 15:58:15 -04:00
2cb9bc8ad2 Add to corpus 2025-05-19 15:13:55 -04:00
bf30eabdfc Match simdjson behavior for surrogate pairs
As far as I can tell
2025-05-19 15:11:30 -04:00
292154100f Implement utf16 surrogate pairs 2025-05-19 14:53:16 -04:00
34ad19c22f Unescape basic multi-lingual plane utf8 2025-05-19 14:26:12 -04:00
19bc216458 Add utf-8 unescaping test 2025-05-19 13:14:24 -04:00
d9bb22e6b1 Fix several unescaping issues 2025-05-19 13:10:24 -04:00
553a273a1b Basic unescaping 2025-05-19 12:47:14 -04:00
d5bd9fc018 Call on_string_data with all available data 2025-05-19 12:41:12 -04:00
b7cacf13f4 Call on_number_data with all available bytes 2025-05-19 12:37:06 -04:00
5ae8d4343c Add simple unescaping test 2025-05-19 12:25:59 -04:00
fc747f96df invalidUtf8 -> invalidStringByte 2025-05-19 12:25:13 -04:00
a271d698d0 Include "callbacks.h" 2025-05-19 11:36:02 -04:00
d279173482 Validate utf8 2025-05-18 17:23:22 -04:00
452bbd3d9c More corpus 2025-05-18 17:21:13 -04:00
0a81c27155 Add corpus 2025-05-18 14:40:50 -04:00
32b43e71da Simplify fuzz test 2025-05-18 14:14:45 -04:00
b7f6ed1c9c Wee fuzz test and associated bug fixes 2025-05-18 13:46:00 -04:00
9543aba2ad Add streaming test 2025-05-18 13:13:36 -04:00
5dd627f072 Call final parse call in bench 2025-05-18 12:03:14 -04:00
7b546bf9cb Fix test numbering 2025-05-18 12:02:04 -04:00
249154f0a3 Remove musttail definition in test.cpp 2025-05-18 11:59:25 -04:00
9f6a04c3e8 Remove Parser1 2025-05-18 11:54:37 -04:00
c65cf44cc8 Call data callbacks 2025-05-18 11:50:16 -04:00
a47d791ff8 Comment out debugPrint 2025-05-18 11:43:16 -04:00
e06b0d0cf6 Call non-data callbacks 2025-05-18 11:43:05 -04:00
dd8b316e29 Remove parser2 2025-05-18 11:42:48 -04:00
19208c0e0a Pivot to simpler approach. Passes JSONTestSuite 2025-05-18 11:34:12 -04:00
6cb7645675 Fix bogus assert 2025-05-17 17:54:37 -04:00
01ffe4e15d Organize members, tweak eof 2025-05-17 17:52:19 -04:00
99e9688efe Don't pass null to memchr 2025-05-17 17:50:37 -04:00
925429f8e4 Add T_EOF 2025-05-17 17:15:01 -04:00
37c860ce62 Combine prime and parse 2025-05-17 13:41:28 -04:00
e10fb92801 Fix includes 2025-05-17 13:34:30 -04:00
733dc576b7 Start organizing code 2025-05-17 12:24:07 -04:00
6f0315e00c Don't check for empty stack as often 2025-05-16 17:00:18 -04:00
adedfc6435 Mention we don't validate utf-8 2025-05-16 16:59:45 -04:00
2b640832f6 Use 64 bit index 2025-05-16 16:52:18 -04:00
01e04ca166 Output delimiters for minifyCallbacks 2025-05-16 16:11:28 -04:00
3c646732ac Add .clangd 2025-05-16 12:55:45 -04:00
dbf20328d1 Handle more "number" digits 2025-05-16 12:54:13 -04:00
545836f6d2 Handle string framing (i.e. \") 2025-05-16 12:38:38 -04:00
aa25751c17 static assert symbolNames is the right size 2025-05-15 20:38:27 -04:00
3cedd66d74 Add whitespace nonterminal 2025-05-15 20:33:56 -04:00
d8a8bcbd19 Fix some callback calls 2025-05-15 19:53:22 -04:00