void json_init(json_where_t *where)
void json_action(json_where_t *where, const char *text, size_t length)
void json_update(json_where_t *where, const json_where_t *offsets, int steps)
CT_INTEROP_API void flex_action(INOUT_NOTNULL where_t *where, const char *text)
tracks the current source position
CT_INTEROP_API void flex_init(OUT_NOTNULL where_t *where)
initialize source location tracking
#define CTASSERT(expr)
assert a condition, prints the condition as a message
a location inside a scanner locations are inclusive and 0-based
ctu_column_t first_column
the first column of the location
ctu_column_t last_column
the last column of the location
ctu_line_t last_line
the last line of the location
ctu_line_t first_line
the first line of the location