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
Literal(String)A non-special literal word.
Param(DefaultParameter)Access of a value inside a parameter, e.g. $foo or $$.
Subst(Box<ParameterSubstitutionKind<ComplexWordKind<C>, C>>)A parameter substitution, e.g. ${param-word}.
CommandSubst(CommandGroup<C>)Represents the standard output of some command, e.g. `echo foo`.
Escaped(String)A token which normally has a special meaning is treated as a literal
because it was escaped, typically with a backslash, e.g. \".
StarRepresents *, useful for handling pattern expansions.
QuestionRepresents ?, useful for handling pattern expansions.
SquareOpenRepresents [, useful for handling pattern expansions.
SquareCloseRepresents ], useful for handling pattern expansions.
TildeRepresents ~, useful for handling tilde expansions.
ColonRepresents :, useful for handling tilde expansions.
Trait Implementations
impl<C: Debug> Debug for SimpleWordKind<C>[src]
impl<C: PartialEq> PartialEq for SimpleWordKind<C>[src]
fn eq(&self, __arg_0: &SimpleWordKind<C>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SimpleWordKind<C>) -> bool
This method tests for !=.
impl<C: Eq> Eq for SimpleWordKind<C>[src]
impl<C: Clone> Clone for SimpleWordKind<C>[src]
fn clone(&self) -> SimpleWordKind<C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more