pub enum WolframTokenType {
Show 90 variants
Root,
Whitespace,
Newline,
Identifier,
Integer,
Real,
String,
If,
Then,
Else,
While,
For,
Do,
Function,
Module,
Block,
With,
Table,
Map,
Apply,
Select,
Cases,
Rule,
RuleDelayed,
Set,
SetDelayed,
Unset,
Clear,
ClearAll,
Return,
Break,
Continue,
True,
False,
Null,
Export,
Import,
Plus,
Minus,
Times,
Divide,
Power,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
And,
Or,
Not,
At,
SlashSlash,
MapOperator,
ApplyOperator,
ApplyLevelOperator,
MapAllOperator,
Ampersand,
AtStar,
StarSlash,
StringJoin,
RuleDelayedOp,
Assign,
AddTo,
SubtractFrom,
TimesBy,
DivideBy,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Semicolon,
Colon,
Dot,
Arrow,
DoubleArrow,
Question,
Underscore,
DoubleUnderscore,
TripleUnderscore,
Slot,
SlotSequence,
Factorial,
Comment,
Text,
Error,
Eof,
}Expand description
Token types for the Wolfram language.
Variants§
Root
The root token.
Whitespace
Whitespace.
Newline
A newline character.
Identifier
An identifier.
Integer
An integer literal.
Real
A real number literal.
String
A string literal.
If
If keyword.
Then
Then keyword.
Else
Else keyword.
While
While keyword.
For
For keyword.
Do
Do keyword.
Function
Function keyword.
Module
Module keyword.
Block
Block keyword.
With
With keyword.
Table
Table keyword.
Map
Map keyword.
Apply
Apply keyword.
Select
Select keyword.
Cases
Cases keyword.
Rule
Rule keyword.
RuleDelayed
RuleDelayed keyword.
Set
Set keyword.
SetDelayed
SetDelayed keyword.
Unset
Unset keyword.
Clear
Clear keyword.
ClearAll
ClearAll keyword.
Return
Return keyword.
Break
Break keyword.
Continue
Continue keyword.
True
True keyword.
False
False keyword.
Null
Null keyword.
Export
Export keyword.
Import
Import keyword.
Plus
+.
Minus
-.
Times
*.
Divide
/.
Power
^.
Equal
==.
NotEqual
!=.
Less
<.
Greater
>.
LessEqual
<=.
GreaterEqual
>=.
And
&&.
Or
||.
Not
!.
At
@.
SlashSlash
//.
MapOperator
/@.
ApplyOperator
@@.
ApplyLevelOperator
@@@.
MapAllOperator
//@.
Ampersand
&.
AtStar
@*.
StarSlash
/*.
StringJoin
<>.
RuleDelayedOp
:>.
Assign
=.
AddTo
+=.
SubtractFrom
-=.
TimesBy
*=.
DivideBy
/=.
LeftParen
(.
RightParen
).
LeftBracket
[.
RightBracket
].
LeftBrace
{.
RightBrace
}.
Comma
,.
Semicolon
;.
Colon
:.
Dot
..
Arrow
->.
DoubleArrow
=>.
Question
?.
Underscore
_.
DoubleUnderscore
__.
TripleUnderscore
___.
Slot
#.
SlotSequence
##.
Factorial
!.
Comment
A comment.
Text
Plain text.
Error
An error token.
Eof
End of stream.
Implementations§
Source§impl WolframTokenType
impl WolframTokenType
Sourcepub fn role(&self) -> UniversalTokenRole
pub fn role(&self) -> UniversalTokenRole
Returns the universal token role for this token type.
Trait Implementations§
Source§impl Clone for WolframTokenType
impl Clone for WolframTokenType
Source§fn clone(&self) -> WolframTokenType
fn clone(&self) -> WolframTokenType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more