pub enum Tok {
Show 130 variants
Invalid,
NullTok,
Eof,
MacroFormal,
MacroForeach,
MacroArgCount,
MacroIfEmpty,
MacroIfNEmpty,
Sym,
Int,
SStr,
SStrStart,
SStrMid,
SStrEnd,
DStr,
DStrStart,
DStrMid,
DStrEnd,
ReStr,
LPar,
RPar,
Comma,
Dot,
LBrace,
RBrace,
LBrack,
RBrack,
Eq,
EqEq,
Asi,
Plus,
Minus,
Times,
Div,
Mod,
Gt,
Lt,
Ge,
Le,
Ne,
Arrow,
Colon,
Sem,
And,
AndAnd,
Or,
OrOr,
Xor,
Shl,
AShr,
LShr,
Inc,
Dec,
PlusEq,
MinEq,
TimesEq,
DivEq,
ModEq,
AndEq,
OrEq,
XorEq,
ShlEq,
AShrEq,
LShrEq,
Not,
BNot,
Pound,
PoundPound,
PoundAt,
Ellipsis,
Question,
QQ,
ColonColon,
Float,
BigInt,
At,
DotDot,
FmtSpec,
SelfKw,
Inherited,
ArgCount,
If,
Else,
For,
While,
Do,
Switch,
Case,
Default,
Goto,
Break,
Continue,
Function,
Return,
Local,
Object,
Nil,
True,
Pass,
External,
Extern,
FormatString,
Class,
Replace,
Modify,
New,
Delete,
Throw,
Try,
Catch,
Finally,
Builtin,
Dictionary,
Grammar,
Enum,
Template,
Static,
Foreach,
Export,
Delegated,
TargetProp,
PropertySet,
TargetObj,
DefiningObj,
Transient,
Replaced,
Property,
Operator,
Method,
Invokee,
}Expand description
The kinds of token. They are in the order the reference compiler has them in, so that a kind’s number here is its number there, which is what lets the two tokenizers’ output be compared.
Variants§
Invalid
NullTok
Nothing: the reader should go on to the next token.
Eof
The end of the line, or of the source.
MacroFormal
MacroForeach
MacroArgCount
MacroIfEmpty
MacroIfNEmpty
Sym
Int
SStr
SStrStart
SStrMid
SStrEnd
DStr
DStrStart
DStrMid
DStrEnd
ReStr
LPar
RPar
Comma
Dot
LBrace
RBrace
LBrack
RBrack
Eq
EqEq
Asi
:=, which the language no longer has.
Plus
Minus
Times
Div
Mod
Gt
Lt
Ge
Le
Ne
Arrow
Colon
Sem
And
AndAnd
Or
OrOr
Xor
Shl
AShr
LShr
Inc
Dec
PlusEq
MinEq
TimesEq
DivEq
ModEq
AndEq
OrEq
XorEq
ShlEq
AShrEq
LShrEq
Not
BNot
Pound
PoundPound
PoundAt
Ellipsis
Question
ColonColon
Float
BigInt
An integer too big to be one, to be made a floating-point number.
At
DotDot
FmtSpec
The format in <<%fmt expr>>.
SelfKw
Inherited
ArgCount
If
Else
For
While
Do
Switch
Case
Default
Goto
Break
Continue
Function
Return
Local
Object
Nil
True
Pass
External
Extern
FormatString
Class
Replace
Modify
New
Delete
Throw
Try
Catch
Finally
Builtin
Dictionary
Grammar
Enum
Template
Static
Foreach
Export
Delegated
TargetProp
PropertySet
TargetObj
DefiningObj
Transient
Replaced
Property
Operator
Method
Invokee
Trait Implementations§
impl Copy for Tok
impl Eq for Tok
impl StructuralPartialEq for Tok
Auto Trait Implementations§
impl Forget for Tok
impl Freeze for Tok
impl Move for Tok
impl RefUnwindSafe for Tok
impl Send for Tok
impl Sync for Tok
impl Unpin for Tok
impl UnsafeUnpin for Tok
impl UnwindSafe for Tok
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.