Enum conch_parser::ast::builder::SimpleWordKind [] [src]

pub enum SimpleWordKind<C> {
    Literal(String),
    Param(DefaultParameter),
    Subst(Box<ParameterSubstitutionKind<ComplexWordKind<C>, C>>),
    CommandSubst(CommandGroup<C>),
    Escaped(String),
    Star,
    Question,
    SquareOpen,
    SquareClose,
    Tilde,
    Colon,
}

An indicator to the builder what kind of simple word was parsed.

Variants

A non-special literal word.

Access of a value inside a parameter, e.g. $foo or $$.

A parameter substitution, e.g. ${param-word}.

Represents the standard output of some command, e.g. `echo foo`.

A token which normally has a special meaning is treated as a literal because it was escaped, typically with a backslash, e.g. \".

Represents *, useful for handling pattern expansions.

Represents ?, useful for handling pattern expansions.

Represents [, useful for handling pattern expansions.

Represents ], useful for handling pattern expansions.

Represents ~, useful for handling tilde expansions.

Represents :, useful for handling tilde expansions.

Trait Implementations

impl<C: Debug> Debug for SimpleWordKind<C>
[src]

Formats the value using the given formatter.

impl<C: PartialEq> PartialEq for SimpleWordKind<C>
[src]

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

This method tests for !=.

impl<C: Eq> Eq for SimpleWordKind<C>
[src]

impl<C: Clone> Clone for SimpleWordKind<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more