Enum oursh::program::posix::lex::Token [−][src]
pub enum Token<'input> {
Show 45 variants
Space,
Tab,
Linefeed,
Semi,
Amper,
RBrace,
LBrace,
RParen,
LParen,
Backtick,
Bang,
Pipe,
Equals,
Backslash,
DoubleQuote,
SingleQuote,
Great,
DGreat,
GreatAnd,
Clobber,
Less,
DLess,
DLessDash,
LessAnd,
LessGreat,
And,
Or,
If,
Then,
Else,
Elif,
Fi,
Export,
Do,
Done,
Case,
Esac,
While,
Until,
For,
Word(&'input str),
IoNumber(usize),
HashLang(&'input str),
Shebang(&'input str),
Text(&'input str),
}Expand description
Every token in the langauge, these are the terminals of the grammar.
Variants
Tuple Fields of Word
0: &'input strTuple Fields of IoNumber
0: usizeTuple Fields of HashLang
0: &'input strTuple Fields of Shebang
0: &'input strTuple Fields of Text
0: &'input strTrait Implementations
Auto Trait Implementations
impl<'input> RefUnwindSafe for Token<'input>
impl<'input> UnwindSafe for Token<'input>
Blanket Implementations
Mutably borrows from an owned value. Read more