Module chumsky::stream

source ·
Expand description

Token streams and tools converting to and from them..

“What’s up?” “I don’t know,” said Marvin, “I’ve never been there.”

Stream is the primary type used to feed input data into a chumsky parser. You can create them in a number of ways: from strings, iterators, arrays, etc.

Structs

A type that represents a stream of input tokens. Unlike Iterator, this type supports backtracking and a few other features required by the crate.

Enums

A utility type used to flatten input trees. See Stream::from_nested.

Type Definitions

A Stream that pulls tokens from a boxed Iterator.