[][src]Enum cfg_lib::config::TokenKind

pub enum TokenKind {
    EOF,
    Word,
    Number,
    String,
    Newline,
    LeftCurly,
    RightCurly,
    LeftBracket,
    RightBracket,
    LeftParenthesis,
    RightParenthesis,
    LessThan,
    GreaterThan,
    LessThanOrEqual,
    GreaterThanOrEqual,
    Assign,
    Equal,
    Unequal,
    AltUnequal,
    LeftShift,
    RightShift,
    Dot,
    Comma,
    Colon,
    At,
    Plus,
    Minus,
    Star,
    Power,
    Slash,
    SlashSlash,
    Modulo,
    BackTick,
    Dollar,
    True,
    False,
    None,
    Is,
    In,
    Not,
    And,
    Or,
    BitwiseAnd,
    BitwiseOr,
    BitwiseXor,
    BitwiseComplement,
    Complex,
    IsNot,
    NotIn,
}

This represents the kind of token. A deliberate choice was made to separate this from the ScalarValue enumeration to keep the token kind as just a simple enumeration, as in other language implementations.

Variants

EOF

This represents the token at the end of the input stream.

Word

This represents a word (identifier).

Number

This represents a literal number.

String

This represents a literal string.

Newline

This represents the "\n" punctuation character.

LeftCurly

This represents the "{" punctuation character.

RightCurly

This represents the "}" punctuation character.

LeftBracket

This represents the "[" punctuation character.

RightBracket

This represents the "]" punctuation character.

LeftParenthesis

This represents the "(>)" punctuation character.

RightParenthesis

This represents the ")" punctuation character.

LessThan

This represents the "<>>" punctuation character.

GreaterThan

This represents the ">" punctuation character.

LessThanOrEqual

This represents the "<=>" punctuation sequence.

GreaterThanOrEqual

This represents the ">=" punctuation sequence.

Assign

This represents the "=" punctuation character.

Equal

This represents the "==" punctuation sequence.

Unequal

This represents the "!=" punctuation sequence.

AltUnequal

This represents the "<>>>" punctuation sequence.

LeftShift

This represents the "<<>>>>" punctuation sequence.

RightShift

This represents the ">>" punctuation sequence.

Dot

This represents the "." punctuation character.

Comma

This represents the "," punctuation character.

Colon

This represents the ":" punctuation character.

At

This represents the "@" punctuation character.

Plus

This represents the "+" punctuation character.

Minus

This represents the "-" punctuation character.

Star

This represents the "*" punctuation character.

Power

This represents the "**" punctuation sequence.

Slash

This represents the "/" punctuation character.

SlashSlash

This represents the "//" punctuation sequence.

Modulo

This represents the "%" punctuation character.

BackTick

This represents the "`" punctuation character.

Dollar

This represents the "$" punctuation character.

True

This represents the "true" keyword.

False

This represents the "false" keyword.

None

This represents the "null" keyword.

Is

This represents an equivalence - the "is" operator.

In

This represents a containment - the "in" operator.

Not

This represents a logical negation - the ! or "not" operator.

And

This represents a logical and - the && or "and" operator.

Or

This represents a logical or - the || or "or" operator.

BitwiseAnd

This represents a bitwise and - the & operator.

BitwiseOr

This represents a bitwise or - the | operator.

BitwiseXor

This represents a bitwise exclusive or - the ^ operator.

BitwiseComplement

This represents a bitwise complement - the ~ operator.

Complex

This represents a complex value.

IsNot

This represents the "is not" operator.

NotIn

This represents the "not in" operator.

Trait Implementations

impl Clone for TokenKind[src]

impl Copy for TokenKind[src]

impl Debug for TokenKind[src]

impl Eq for TokenKind[src]

impl Hash for TokenKind[src]

impl PartialEq<TokenKind> for TokenKind[src]

impl StructuralEq for TokenKind[src]

impl StructuralPartialEq for TokenKind[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, 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.