#include <stdlib.h>
#include "JSON_checker.h"
Defines | |
#define | true 1 |
#define | false 0 |
#define | __ -1 |
Enumerations | |
enum | classes { C_SPACE, C_WHITE, C_LCURB, C_RCURB, C_LSQRB, C_RSQRB, C_COLON, C_COMMA, C_QUOTE, C_BACKS, C_SLASH, C_PLUS, C_MINUS, C_POINT, C_ZERO, C_DIGIT, C_LOW_A, C_LOW_B, C_LOW_C, C_LOW_D, C_LOW_E, C_LOW_F, C_LOW_L, C_LOW_N, C_LOW_R, C_LOW_S, C_LOW_T, C_LOW_U, C_ABCDF, C_E, C_ETC, NR_CLASSES } |
enum | states { GO, OK, OB, KE, CO, VA, AR, ST, ES, U1, U2, U3, U4, MI, ZE, IN, FR, E1, E2, E3, T1, T2, T3, F1, F2, F3, F4, N1, N2, N3, NR_STATES } |
enum | modes { MODE_ARRAY, MODE_DONE, MODE_KEY, MODE_OBJECT } |
Functions | |
JSON_checker | new_JSON_checker (int depth) |
int | JSON_checker_char (JSON_checker jc, int next_char) |
int | JSON_checker_done (JSON_checker jc) |
#define __ -1 |
Referenced by JSON_checker_char().
#define false 0 |
#define true 1 |
enum classes |
enum modes |
enum states |
int JSON_checker_char | ( | JSON_checker | jc, | |
int | next_char | |||
) |
References __, AR, C_ETC, CO, KE, MODE_ARRAY, MODE_KEY, MODE_OBJECT, OB, OK, JSON_checker_struct::stack, JSON_checker_struct::state, JSON_checker_struct::top, and VA.
Referenced by validate_json().
int JSON_checker_done | ( | JSON_checker | jc | ) |
References MODE_DONE, OK, and JSON_checker_struct::state.
Referenced by validate_json().
JSON_checker new_JSON_checker | ( | int | depth | ) |
References JSON_checker_struct::depth, GO, MODE_DONE, JSON_checker_struct::stack, JSON_checker_struct::state, and JSON_checker_struct::top.
Referenced by validate_json().