Crate pahs[][src]

A parsing library.

Modules

combinators

Parser combinators.

error_accumulator

Allows tracking multiple failures encountered in complex parsers or combinators.

slice

Parsers for slice data (SlicePos).

Macros

pahs

An analog to try!/?, but for Progress

sequence

Runs parsers one after another, optionally saving their results. Then, builds a value based on the saved results.

sequence_with

Runs parsers one after another, optionally saving their results. Then, calls the creator function that builds a value based on the saved results.

Structs

ParseDriver

Maintains (optional) parsing state/context and serves as an easy entry point for some of the combinators.

Progress

Tracks the result of a parser: where it is and if it is successful.

Traits

Pos

A position in the parsed data

Push

Helper trait for collections to push into.

Recoverable

Indicates if an error allows a parent parser to recover and try something else.