Enum moore_vhdl_syntax::lexer::token::Token
[−]
[src]
pub enum Token { Ident(Name), Lit(Literal), OpenDelim(DelimToken), CloseDelim(DelimToken), Keyword(Kw), Period, Comma, Colon, Semicolon, Apostrophe, Ampersand, Arrow, Condition, LtGt, VarAssign, Lshift, Rshift, Eq, Neq, Lt, Leq, Gt, Geq, MatchEq, MatchNeq, MatchLt, MatchLeq, MatchGt, MatchGeq, Add, Sub, Mul, Div, Pow, Pipe, Qmark, Eof, }
A primary token as emitted by the lexer.
Variants
Ident(Name)
A basic or extended identifier.
Lit(Literal)
A literal.
OpenDelim(DelimToken)
An opening delimiter.
CloseDelim(DelimToken)
A closing delimiter.
Keyword(Kw)
A keyword.
Period
Comma
Colon
Semicolon
Apostrophe
Ampersand
Arrow
Condition
LtGt
VarAssign
Lshift
Rshift
Eq
Neq
Lt
Leq
Gt
Geq
MatchEq
MatchNeq
MatchLt
MatchLeq
MatchGt
MatchGeq
Add
Sub
Mul
Div
Pow
Pipe
Qmark
Eof
The end of the input file.
Methods
impl Token
[src]
fn as_str(self) -> &'static str
[src]
fn is_ident(self) -> bool
[src]
Checks if this token is a identifier.
Trait Implementations
impl Clone for Token
[src]
fn clone(&self) -> Token
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Token
[src]
impl PartialEq for Token
[src]
fn eq(&self, __arg_0: &Token) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Token) -> bool
[src]
This method tests for !=
.
impl Eq for Token
[src]
impl Hash for Token
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more