Module parser

Module parser 

Source
Expand description

A JSON parse built to keep track of where each element came from in the input.

Structs§

Error
A parsing Error that keeps track of the token being parsed when the Error occurred and the slice of JSON surrounding the Error location.
ErrorReport
A more comprehensive report on the Error using the source JSON &str to provide human readable context.
LineCol
A file location expressed as line and column.
PartialError
An error that has yet to be resolved with a Span.
RawStr
A &str with surrounding quotes removed and it hasn’t been analyzed for escapes codes.
Span
The Span defines the range of bytes that delimits a JSON Element.
SpanBounds
The line and col indices of the start and end of the span.
Token
A lexical token, identifying its kind and span.

Enums§

ErrorKind
The kind of Errors that can occur while parsing JSON.
TokenType
Define our own TokenType so Clone can be defined on it.

Functions§

line_col
Return the line and column indices of the end of the slice.