[][src]Enum moore_svlog_syntax::token::Token

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

Comma
Period
Colon
Semicolon
At
Hashtag
DoubleHashtag
Namespace
Ternary
AddColon
SubColon
Apostrophe
Dollar
Operator(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

Implementations

impl Token[src]

pub fn as_str(self) -> &'static str[src]

Trait Implementations

impl Clone for Token[src]

impl Copy for Token[src]

impl Debug for Token[src]

impl Display for Token[src]

impl Eq for Token[src]

impl Hash for Token[src]

impl PartialEq<Token> for Token[src]

impl StructuralEq for Token[src]

impl StructuralPartialEq for Token[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.