Trait perplex_runtime::ParserInput[][src]

pub trait ParserInput {
    type Item;
    fn peek(&mut self) -> &Self::Item;
fn next(&mut self) -> Self::Item;
fn marker() -> Self::Item; }

An stream of tokens that can be used as parser input.

Associated Types

The token type produced by the stream.

Required Methods

Peek at the next item in the stream.

Consume the next item in the stream.

Returns the end-of-stream marker.

The stream will continue to produce this marker once reaching the end. Code calling peek() or next() must compare the result to this marker to dedect the end of the input.

Implementors