Crate yarpl[−][src]
yarpl
, or Yet Another Rust Parsing Library, revolves around the Consumer
struct and the Feed
trait.
Consumer
A Consumer
hold a Vec<String>
of parsed tokens as well as the remaining unparsed String
.
Feed
The Feed
trait defines how a trait is parsed using a Consumer
using consume
.
Structs
Consumer | Holds tokens ( |
Many | Given a type |
Maybe | When parsed, always returns |
Must | When parsed, ensures an object of type |
Not | A type that, when parsed, ensures an object of type |
Peek | Consumes a single token built from a |
Traits
Feed | Defines how a type may be parsed by mutating |
Type Definitions
Result |