Crate yarpl[][src]

yarpl (or Yet Another Rust Parsing Library) makes use of a the Consumer struct and the Feed trait to make parsing easier.

Consumer

A Consumer tracks parsed tokens as well as some remaining unparsed input.

Feed

The Feed trait defines how a trait is parsed using a Consumer using Consumer::consume.

Macros

only

Defines a type that only parses a string.

peek

Defines a type that solely parses with Peek.

plan

Defines a type which parses a sequence of predefined Feed types.

Structs

Consumer

Holds tokens (String) that have been parsed, as well as remaining input.

Many

Given a type T : Feed and a range n .. m, parses T between n and m times.

Maybe

When parsed, always returns Ok. Will also construct a Feed object in self if successful.

Must

When parsed, ensures an object of type T : Feed is able to be parsed from a consumer, but will consume no input.

Not

A type that, when parsed, ensures an object of type T : Feed cannot be parsed from some Consumer.

Peek

Consumes a single token built from a char predicate.

Traits

Feed

Defines how a type may be parsed by mutating self and some Consumer.

Type Definitions

Result