Module core

Source

Structs§

ParserIterator
Main structure associated to iterator.

Enums§

State 🔒

Functions§

backtrack_err
Transforms an ErrMode::Cut (unrecoverable) to ErrMode::Backtrack (recoverable)
cond
Calls the parser if the condition is met.
cut_err
Transforms an ErrMode::Backtrack (recoverable) to ErrMode::Cut (unrecoverable)
empty
Succeed, consuming no input
eof
Match the end of the Stream
fail
A parser which always fails.
iterator
Repeats the embedded parser, lazily returning the results
not
Succeeds if the child parser returns an error.
opt
Apply a Parser, producing None on ErrMode::Backtrack.
peek
Apply the parser without advancing the input.
todo
A placeholder for a not-yet-implemented Parser