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

An opening delimiter

A closing delimiter

A literal

A system task or function identifier, e.g. "$display"

A compiler directive, e.g. "`timescale"

An identifier

An escaped identifier

An unsigned number A keyword

Methods

impl Token
[src]

[src]

Trait Implementations

impl Clone for Token
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Token
[src]

impl PartialEq for Token
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Token
[src]

impl Hash for Token
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Token
[src]

[src]

Formats the value using the given formatter.

impl Display for Token
[src]

[src]

Formats the value using the given formatter. Read more