Enum conch_parser::parse::ParseError [] [src]

pub enum ParseError<T> {
    BadFd(SourcePosSourcePos),
    BadIdent(StringSourcePos),
    BadSubst(TokenSourcePos),
    Unmatched(TokenSourcePos),
    IncompleteCmd(&'static strSourcePos, &'static strSourcePos),
    Unexpected(TokenSourcePos),
    UnexpectedEOF,
    Custom(T),
}

The error type which is returned from parsing shell commands.

Variants

Encountered a word that could not be interpreted as a valid file descriptor. Stores the start and end position of the invalid word.

Encountered a Token::Literal where expecting a Token::Name.

Encountered a bad token inside of ${...}.

Encountered EOF while looking for a match for the specified token. Stores position of opening token.

Did not find a reserved keyword within a command. The first String is the command being parsed, followed by the position of where it starts. Next is the missing keyword followed by the position of where the parse expected to have encountered it.

Encountered a token not appropriate for the current context.

Encountered the end of input while expecting additional tokens.

A custom error returned by the AST builder.

Trait Implementations

impl<T: Debug> Debug for ParseError<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for ParseError<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for ParseError<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for ParseError<T>
[src]

impl<T: Error> Error for ParseError<T>
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<T: Display> Display for ParseError<T>
[src]

Formats the value using the given formatter. Read more

impl<T> From<T> for ParseError<T>
[src]

Performs the conversion.