[][src]Enum javascript_lexer::token::Token

pub enum Token {
    And,
    AndAssign,
    Assign,
    AssignBigger,
    Bigger,
    BiggerEqual,
    BoolLiteral(bool),
    Caret,
    CaretAssign,
    Colon,
    Comma,
    Semicolon,
    Slash,
    SlashAssign,
    Dot,
    DoubleAnd,
    DoubleAssign,
    DoubleBigger,
    DoubleBiggerEqual,
    DoubleLesser,
    DoubleLesserEqual,
    DoubleMinus,
    DoubleOr,
    DoublePlus,
    DoubleStar,
    DoubleStarAssign,
    EOF,
    Regex(String),
    Exclamation,
    ExclamationAssign,
    ExclamationDoubleAssign,
    IdentifierName(IStr),
    KAs,
    KAsync,
    KAwait,
    KBreak,
    KCase,
    KCatch,
    KClass,
    KConst,
    KContinue,
    KDebugger,
    KDefault,
    KDelete,
    KDo,
    KElse,
    KExtend,
    KFinally,
    KFor,
    KFrom,
    KFunction,
    KGet,
    KIf,
    KIn,
    KImport,
    KLet,
    KNew,
    KOf,
    KReturn,
    KSet,
    KStatic,
    KSwitch,
    KThis,
    KThrow,
    KTry,
    KTypeof,
    KVar,
    KVoid,
    KWhile,
    KWith,
    LCurly,
    LessEqual,
    Lesser,
    LineTerminator,
    LNull,
    LUndefined,
    LRound,
    LSquare,
    Minus,
    MinusAssign,
    NumericLiteral(Number),
    Or,
    OrAssign,
    Percent,
    PercentAssign,
    Plus,
    PlusAssign,
    QuestionMark,
    RCurly,
    RRound,
    RSquare,
    Star,
    StarAssign,
    StringLiteral(String),
    Template(String),
    Tilde,
    TripleAssign,
    TripleBigger,
    TripleBiggerEqual,
    TripleDot,
}

Token that is results of consuming characters

Variants

And

&

AndAssign

&=

Assign

=

AssignBigger

=>

Bigger

>

BiggerEqual

>=

BoolLiteral(bool)

True / False

Caret

^

CaretAssign

^=

Colon

:

Comma

,

Semicolon

;

Slash

/

SlashAssign

/=

Dot

.

DoubleAnd

&&

DoubleAssign

==

DoubleBigger

\>>

DoubleBiggerEqual

\>>=

DoubleLesser

<<

DoubleLesserEqual

<<=

DoubleMinus

--

DoubleOr

||

DoublePlus

++

DoubleStar

**

DoubleStarAssign

**=

EOF

End of line

Regex(String)

/{this}/

Exclamation

!

ExclamationAssign

!=

ExclamationDoubleAssign

!==

IdentifierName(IStr)

a, name, (not keyword or reserved word)

KAs

as

KAsync

async

KAwait

await

KBreak

break

KCase

case

KCatch

catch

KClass

class

KConst

const

KContinue

continue

KDebugger

debugger

KDefault

default

KDelete

delete

KDo

do

KElse

else

KExtend

extend

KFinally

finallly

KFor

for

KFrom

from

KFunction

function

KGet

get

KIf

if

KIn

in

KImport

import

KLet

let

KNew

new

KOf

of

KReturn

return

KSet

set

KStatic

static

KSwitch

switch

KThis

this

KThrow

throw

KTry

try

KTypeof

typeof

KVar

var

KVoid

void

KWhile

while

KWith

with

LCurly

{

LessEqual

<=

Lesser

<<

LineTerminator

\n

LNull

null

LUndefined

undefined

LRound

(

LSquare

[

Minus

-

MinusAssign

-=

NumericLiteral(Number)

0 0.5 1e2 2.3e2

Or

|

OrAssign

|=

Percent

%

PercentAssign

%=

Plus

+

PlusAssign

+=

QuestionMark

?

RCurly

}

RRound

)

RSquare

]

Star

*

StarAssign

*=

StringLiteral(String)

"adad" 'adada'

Template(String)

ada{var}

Tilde

~

TripleAssign

===

TripleBigger

>>>

TripleBiggerEqual

>>>=

TripleDot

...

Trait Implementations

impl PartialEq<Token> for Token[src]

impl Clone for Token[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Token[src]

Auto Trait Implementations

impl !Send for Token

impl !Sync for Token

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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