[][src]Module ress::tokens

Modules

prelude

Structs

Comment

A comment, effectively should be treated as white space. There are 3 kinds of comments according to the specification.

Ident

An identifier

Number

A JS number literal. There are 4 kinds of number literals allowed in JS.

RegEx

A Regular Expression Literal

Enums

Boolean

The tokenized representation of true or false

CommentKind

The 4 kinds of comments

Keyword

A JS Keyword

NumberKind

The 4 kinds of numbers

Punct

All available punctuation

StringLit

A single or double quoted string literal

Template

A template string

Token

The representation of any single JS part

Traits

CommentExt

Extension methods for comment to work with both &str and String

IdentExt

Extention methods for allowing Ident to work with both &str and String

NumberExt

Extension methods for allowing Number to work with both &str and String

RegExExt

Extension methods for allowing RegEx to work with both &str and String

StringLitExt

Extension methods for allowing StringLit to work with both &str and String

TemplateExt

Extension methods for allowing Template to work with both &str and String

TokenExt

Extension methods for implementing allowing Token to work with both &str and String