Module grab::parsers[][src]

This module contains the individual parsers that the high level API uses for actually processing raw input into a well understood Input. Under the hood, each of the parsers use nom combinators for driving the parsing. See the exposed parsers themselves for details on how each works.

The module does also provide access to the underlying nom library, though it is hidden to avoid cluttering up this crates documentation. You can use it via:

use grab::parsers::reexport::nom;

Structs

File

Parser

Stdin

A construct for handling the parsing of a given input string and determining if the program’s stdin should be called in leu of. By default, it will only indicate stdin should be used if the given input is a single dash (‘-’), with no other input.

Text

Construct for treating the given input to parse as a readable input source. By default, this parser will consume any valid utf8 strings and return it as an input source. Consequently, this parser by default has the lowest possible priority so it will always be the last parser run.