TokenType class
A token type. Access token types via the static fields.
For example, to access the token type PLUS:
plusType = TokenType.PLUS;
The type defines the priority
(precedence) of the token.
(+,-) < (*,/) < (^) < functions < (-u)
It also defines the associativity of the token. True stands for left-associative, false for right-associative.
Properties
- function → bool
-
True, if this token is a function.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- leftAssociative → bool
-
Associativity of this token type. true = left.
final
- operator → bool
-
True, if this token is an operator.
final
- priority → int
-
The priority of this token type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string value of this token type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ABS → const TokenType
- ACOS → const TokenType
- ASIN → const TokenType
- ATAN → const TokenType
- CEIL → const TokenType
- COS → const TokenType
- DIV → const TokenType
- EFUNC → const TokenType
- FACTORIAL → const TokenType
- FLOOR → const TokenType
- FUNC → const TokenType
- LBRACE → const TokenType
- LN → const TokenType
- LOG → const TokenType
- MINUS → const TokenType
- MOD → const TokenType
- PLUS → const TokenType
- POW → const TokenType
- RBRACE → const TokenType
- ROOT → const TokenType
- SEPAR → const TokenType
- SGN → const TokenType
- SIN → const TokenType
- SQRT → const TokenType
- TAN → const TokenType
- TIMES → const TokenType
- UNMINUS → const TokenType
- UNPLUS → const TokenType
- VAL → const TokenType
- VAR → const TokenType