Structure
judo_stream
Scanner state.
Since v1.0
struct judo_stream {
struct judo_span where;
enum judo_token token;
char error[JUDO_ERRMAX];
}
Properties 🔗
where | Lexeme or error location. |
token | JSON semantic token. |
error | Error description. |
Discussion 🔗
The structure encompasses the entire state of the Judo scanner. Instances of this structure can be copied with memcpy
to preserve an earlier state.
The fields where field refers to the lexeme of the semantic token referenced by token in the source text, in UTF-8 code units. If an error occurs, then they refer to the span of code units of the erroneous source text.