Enum moore_svlog::token::Token [−][src]
pub enum Token {
Show 23 variants
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,
}
Expand description
A primary token emitted by the lexer.
Variants
Operator(Op)
Tuple Fields of Operator
0: Op
OpenDelim(DelimToken)
An opening delimiter
Tuple Fields of OpenDelim
0: DelimToken
CloseDelim(DelimToken)
A closing delimiter
Tuple Fields of CloseDelim
0: DelimToken
Literal(Lit)
A literal
Tuple Fields of Literal
0: Lit
SysIdent(Name)
A system task or function identifier, e.g. “$display”
Tuple Fields of SysIdent
0: Name
CompDir(Name)
A compiler directive, e.g. “`timescale”
Tuple Fields of CompDir
0: Name
Ident(Name)
An identifier
Tuple Fields of Ident
0: Name
EscIdent(Name)
An escaped identifier
Tuple Fields of EscIdent
0: Name
Keyword(Kw)
An unsigned number A keyword
Tuple Fields of Keyword
0: Kw
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more