mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
352dd5e7fa
* Added simdjerr namespace * Updated jsonparser files * updated stage1 and stage2 * removed stage2 inline function * Added forgotten return statements * Updated tools and benchmarks * Corrected parenthesis * Removed extra = * Accidentally undid reinterpret_cast * Better comments, undid a header name fuckup * Added an errorMsg method, updated readme * Removed useless header from stage2 * Updated single-header file * added simdjerr.cpp contents to simdjson.cpp * Made single header version work * Updated singleheader test, fixed simdjson.cpp * Renamed simdjerr namespace and files to simdjson * Updating the amalgamation.
18 lines
455 B
C++
18 lines
455 B
C++
/* auto-generated on Fri 1 Mar 2019 16:20:33 EST. Do not edit! */
|
|
|
|
#include <iostream>
|
|
#include "simdjson.h"
|
|
#include "simdjson.cpp"
|
|
int main(int argc, char *argv[]) {
|
|
const char * filename = argv[1];
|
|
std::string_view p = get_corpus(filename);
|
|
ParsedJson pj = build_parsed_json(p); // do the parsing
|
|
if( ! pj.isValid() ) {
|
|
std::cout << "not valid" << std::endl;
|
|
} else {
|
|
std::cout << "valid" << std::endl;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|