Files
jq/jv_parse.h
T

31 lines
466 B
C
Raw Normal View History

2012-09-11 14:52:10 +01:00
#ifndef JV_PARSE_H
#define JV_PARSE_H
#include "jv_dtoa.h"
struct jv_parser {
2012-09-11 14:52:10 +01:00
const char* curr_buf;
int curr_buf_length;
int curr_buf_pos;
int curr_buf_is_partial;
unsigned bom_strip_position;
2012-09-11 14:52:10 +01:00
jv* stack;
int stackpos;
int stacklen;
jv next;
char* tokenbuf;
int tokenpos;
int tokenlen;
int line, column;
struct dtoa_context dtoa;
enum {
JV_PARSER_NORMAL,
JV_PARSER_STRING,
JV_PARSER_STRING_ESCAPE
} st;
};
2012-09-11 14:52:10 +01:00
#endif