John Keiser
74c47995a3
Document json_iterator
2020-08-18 21:25:03 -07:00
John Keiser
24f5936cbf
Give is_array responsibility to json_iterator
2020-08-18 21:25:03 -07:00
John Keiser
bdfa8aca28
Separate interface from implementation to make interface clearer
2020-08-18 21:25:03 -07:00
John Keiser
15eb1ad922
Preface visitor methods with visit()
2020-08-18 21:25:03 -07:00
John Keiser
6ec98ee8b1
Add error codes to all things
2020-08-18 21:25:03 -07:00
John Keiser
c5862d6de9
Remove empty_object/empty_array
2020-08-18 21:25:03 -07:00
John Keiser
57eb55446f
Cache string value locally
2020-08-18 21:25:03 -07:00
John Keiser
abd1399a7f
Don't check depth at the end (unnecessary check)
2020-08-18 21:25:03 -07:00
John Keiser
57eba21ee5
Fall through goto labels where possible
2020-08-18 21:25:03 -07:00
John Keiser
1b56211a70
Give start_*/end_* error codes
2020-08-18 21:25:03 -07:00
John Keiser
d8974d53b2
Keep value around between states
2020-08-18 21:25:03 -07:00
John Keiser
5ecd17f49e
Log unconsumed input as an error
2020-08-18 21:25:03 -07:00
John Keiser
6bb99aec3c
Merge structural_parser+iterator into json_iterator
2020-08-18 21:25:03 -07:00
John Keiser
a67e83e24e
Remove parse_* from visitor method names
2020-08-18 21:25:03 -07:00
John Keiser
5a3c3134ec
Move value into common place to be shared across states
2020-08-18 21:25:03 -07:00
John Keiser
ce8b9ee8c4
Move finish() out to walk_document
2020-08-18 21:25:03 -07:00
John Keiser
970dfc9f67
builder -> visitor, parser -> iter
2020-08-18 21:25:03 -07:00
John Keiser
04d39c0961
Make tape_builder primary entry point to stage 2
2020-08-18 21:25:01 -07:00
John Keiser
d6339aa015
Set is_array in builder
2020-08-18 17:41:48 -07:00
John Keiser
11076bf337
containing_scope -> open_container
2020-08-18 17:41:16 -07:00
Daniel Lemire
8a8eea53a2
Prefixing macros (issue 1035) ( #1124 )
...
* Renaming partially done.
* More prefixing.
* I thought that this was fixed.
* Missed one.
* Missed a few.
* Missed another one.
* Minor fixes.
2020-08-18 18:25:36 -04:00
Daniel Lemire
09bd7e8ef8
Verification and fix for issue 1063 (JSON Pointers) ( #1064 )
...
* Specification is not followed.
* Fixes.
* Do not pass string_view by reference.
* Better documentation.
* The example is written for exceptions.
* Better documentation.
* Updating with deprecation.
* Updating example.
* Updating example.
2020-08-18 17:23:18 -04:00
John Keiser
9356619380
Merge pull request #1110 from simdjson/jkeiser/number-corruption
...
Fix potential buffer overrun with heavily customized input and padding
2020-08-18 14:17:25 -07:00
Daniel Lemire
fc15147cf5
This allows the users to disable threading. ( #1122 )
...
* This allows the users to disable threading.
* This would disable bash scripts under FreeBSD. (#1118 )
* This would disable bash scripts under FreeBSD.
* Let us also disable GIT.
* Let us try to just disable GIT
* Nope. We must have both bash and git disabled.
* This allows the users to disable threading.
2020-08-18 16:43:08 -04:00
John Keiser
ab6b7a8044
Make last_structural() helper
2020-08-18 10:12:42 -07:00
John Keiser
07c2fe726e
Fail if hash is unclosed at start
2020-08-18 10:10:01 -07:00
John Keiser
fa355603fb
Add test for corruption while parsing a number
2020-08-18 10:10:01 -07:00
Daniel Lemire
109bb505d8
Adding a new test file. ( #922 )
...
* Adding a new test file.
* Renaming.
2020-08-18 10:42:45 -04:00
Daniel Lemire
4a6eebc0e4
This corrects a small typo in the documentation. ( #1121 )
...
* This corrects a small typo in the documentation.
* Modifying the test as well.
2020-08-18 08:36:15 -04:00
PavelP
78ce2b473e
Copy README.md/amalgamate_demo.cpp only if output dir isn't the same as ${SCRIPTPATH} ( #1113 )
...
+ use test's `-ef` file operator to check if ${SCRIPTPATH} and ${AMALGAMATE_OUTPUT_PATH} are not the same
2020-08-18 08:35:21 -04:00
Daniel Lemire
6beb5f5587
This adds debug tests in CI. ( #1123 )
...
* This adds debug tests in CI.
* Removing silly labels.
* Typo
2020-08-17 13:36:30 -04:00
Daniel Lemire
501fed6c4f
This would disable bash scripts under FreeBSD. ( #1118 )
...
* This would disable bash scripts under FreeBSD.
* Let us also disable GIT.
* Let us try to just disable GIT
* Nope. We must have both bash and git disabled.
2020-08-17 11:50:57 -04:00
Daniel Lemire
b1bd8e9ee2
Update issue templates
2020-08-17 08:16:39 -04:00
Daniel Lemire
daeca1bb18
Basics. ( #1116 )
2020-08-14 17:28:09 -04:00
Daniel Lemire
17f6d5208f
Documenting and fixing the case where a string is immediately followed by a scalar ( #1106 )
...
* Documenting and fixing.
* More cleaning.
* Being a bit cleaner.
2020-08-14 16:19:57 -04:00
John Keiser
bee4d7a12b
Merge pull request #1108 from simdjson/jkeiser/ncgdoc
...
Remove information about nonexistent computed gotos :)
2020-08-12 10:39:20 -07:00
Daniel Lemire
f32e3e0c7c
Please don't use GNU-specific flags. ( #1109 )
2020-08-11 09:12:39 -04:00
John Keiser
1b69612246
Remove information about nonexistent computed gotos :)
2020-08-10 16:29:24 -07:00
Daniel Lemire
9e93509a56
Fix number parsing (too lenient). ( #1107 )
...
* Fix number parsing (too lenient).
* Minor tweak.
* These are Booleans.
* Tweaking test config
2020-08-10 18:10:11 -04:00
Daniel Lemire
ef45cd3342
Let us be explicit about standard compliance ( #1099 )
...
* Let us be explicit about standard compliance
* More explicit.
2020-08-06 18:24:36 -04:00
Daniel Lemire
46fe2e6b44
Update README.md
2020-08-06 18:03:10 -04:00
John Keiser
1133c2cc1d
Merge pull request #1070 from pps83/bugfix/Do-not-update-README-and-amalgamate_demo
...
Do not update README.md and amalgamate_demo.cpp from amalgamate.sh
2020-08-06 12:43:56 -07:00
Daniel Lemire
fde10553e0
Update HACKING.md
2020-08-06 15:06:31 -04:00
Daniel Lemire
83615ff351
Fixes issue 1088 ( #1096 )
2020-08-06 11:42:13 -04:00
Pavel P
352eb4cb6d
Do not update README.md and amalgamate_demo.cpp from amalgamate.sh
...
README.md and amalgamate_demo.cpp are always the same, there is no point to keep a copy and recreate them from amalgamate.sh
2020-08-06 09:11:20 +06:00
Daniel Lemire
75c75ac00c
This is dead code. ( #1095 )
2020-08-05 16:48:10 -04:00
John Keiser
d9bcf52db2
Merge pull request #1062 from simdjson/jkeiser/reamalgamate
...
Fix C++ 20 compilation
2020-08-04 21:08:24 -07:00
Daniel Lemire
43f0362e6d
Update README.md
2020-08-04 19:44:52 -04:00
John Keiser
ed5e313c73
Reamalgamate
2020-08-04 13:17:23 -07:00
John Keiser
c0010f60e6
Add view support to simdjson_result<array/object>
2020-08-04 13:17:23 -07:00