Module oak_runtime::parse_state [] [src]

A parsing state indicates the current status of the parsing. It is mainly used by compiled PEG combinators.

Structs

ParseExpectation
ParseState

ParseState<S, T> reads value from the stream S and build an AST of type T. Error strategy: Even in case of success, we keep error information in case we fail later. Think about parsing "abaa" with "ab"* "c", it will directly fails on "c", so it is better to report an error such as expected "ab" but got "aa" since the input partially matches "ab"`.

Enums

ParseResult

Traits

IntoState