Crate resrap[−][src]
Expand description
A parsing library heavily leveraged by proc_macro
.
In resrap
, syntax trees are defined by the structure of data types implmenting Parse.
Given T : Parse
, a resrap::Result<T>
is returned by passing a Position to T::parse
.
Along with the Parse trait, there’s also a derive
macro of the same name which
automatically implements Parse for a struct
or enum
, given each of its members or variants also implement it.
Structs
Parses a &'static str
passed generically to Literal
.
Given P : Parse
, parses Option<Vec<Whitespace>>
before and after parsing P
, then returns P
.
An Iterator
over a string being parsed.
Container for a whitespace char
.
Enums
An Error
type created by an unsuccessful parse.
Traits
Interface for parsing from values of Parse
types, as opposed to the types themselves.
Type Definitions
Derive Macros
Types that derive Parse
will automatically implement Parse
, provided its members or variants do also.