Structure
judo_stream
Scanner state.
Since v1.0
struct judo_stream {
struct judo_span where;
enum judo_element element;
char error[JUDO_ERRMAX];
}
Properties 🔗
where | Lexeme or error location. |
element | Semantic element. |
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 element referenced by element 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.