#include <stdlib.h>
#include <stdio.h>
#include "JSON_checker.h"
int main(int argc, char* argv[]) {
JSON_checker jc = new_JSON_checker(20);
for (;;) {
int next_char = getchar();
if (next_char <= 0) {
break;
}
if (!JSON_checker_char(jc, next_char)) {
fprintf(stderr, "JSON_checker_char: syntax error\n");
exit(1);
}
}
if (!JSON_checker_done(jc)) {
fprintf(stderr, "JSON_checker_end: syntax error\n");
exit(1);
}
}