rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
lex_t Struct Reference

State of one lexer run over a JSON text. More...

#include <esc_json_int.h>

Data Fields

const char * s
uint32_t len
uint32_t pos
tok_t * tok
uint32_t n
uint32_t cap
lex_why_t why

Detailed Description

State of one lexer run over a JSON text.

Field Documentation

◆ cap

uint32_t lex_t::cap

capacity of tok, in tokens

◆ len

uint32_t lex_t::len

length of the text, bytes

◆ n

uint32_t lex_t::n

tokens counted or stored

◆ pos

uint32_t lex_t::pos

where the lexer stopped

◆ s

const char* lex_t::s

the text

◆ tok

tok_t* lex_t::tok

NULL: count only

◆ why

lex_why_t lex_t::why

what stopped the read, past a syntax error


The documentation for this struct was generated from the following file: