Enum moore_svlog_syntax::token::Token
[−]
[src]
pub enum Token {
Comma,
Period,
Colon,
Semicolon,
At,
Hashtag,
DoubleHashtag,
Namespace,
Ternary,
AddColon,
SubColon,
Apostrophe,
Dollar,
Operator(Op),
OpenDelim(DelimToken),
CloseDelim(DelimToken),
Literal(Lit),
SysIdent(Name),
CompDir(Name),
Ident(Name),
EscIdent(Name),
Keyword(Kw),
Eof,
}A primary token emitted by the lexer.
Variants
CommaPeriodColonSemicolonAtHashtagDoubleHashtagNamespaceTernaryAddColonSubColonApostropheDollarOperator(Op)OpenDelim(DelimToken)An opening delimiter
CloseDelim(DelimToken)A closing delimiter
Literal(Lit)A literal
SysIdent(Name)A system task or function identifier, e.g. "$display"
CompDir(Name)A compiler directive, e.g. "`timescale"
Ident(Name)An identifier
EscIdent(Name)An escaped identifier
Keyword(Kw)An unsigned number A keyword
Eof
Methods
impl Token[src]
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