TokenType enum

The type of a token.

Inheritance
Available extensions

Values

leftParenthesis → const TokenType

The left parenthesis token (().

rightParenthesis → const TokenType

The right parenthesis token ()).

leftBrace → const TokenType

The left brace token ({).

rightBrace → const TokenType

The right brace token (}).

comma → const TokenType

The comma token (,).

dot → const TokenType

The dot token (.).

minus → const TokenType

The minus sign token (-).

plus → const TokenType

The plus sign token (+).

semicolon → const TokenType

The semicolon token (;).

slash → const TokenType

The slash token (/).

asterisk → const TokenType

The asterisk token (*).

bang → const TokenType
bangEqual → const TokenType

The bang-equal token (!=).

equal → const TokenType

The equal token (=).

equalEqual → const TokenType

The equal-equal token (==).

greater → const TokenType

The greater-than token (>).

greaterEqual → const TokenType

The greater-than-or-equal-to token (>=).

less → const TokenType

The less-than token (<).

lessEqual → const TokenType

The less-than-or-equal-to token (<=).

identifier → const TokenType

The identifier token.

string → const TokenType

The string literal token ("string").

number → const TokenType

The number literal token (0123456789).

andKeyword → const TokenType

The and keyword token (and).

classKeyword → const TokenType

The class keyword token (class).

elseKeyword → const TokenType

The else keyword token.

falseKeyword → const TokenType

The false keyword token.

funKeyword → const TokenType

The fun keyword token.

forKeyword → const TokenType

The for keyword token.

ifKeyword → const TokenType

The if keyword token.

nilKeyword → const TokenType

The nil keyword token.

orKeyword → const TokenType

The or keyword token.

printKeyword → const TokenType

The print keyword token.

returnKeyword → const TokenType

The return keyword token.

superKeyword → const TokenType

The super keyword token.

thisKeyword → const TokenType

The this keyword token.

trueKeyword → const TokenType

The true keyword token.

varKeyword → const TokenType

The var keyword token.

whileKeyword → const TokenType

The while keyword token.

endOfFile → const TokenType

The end-of-file token.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TokenType>
A constant List of the values in this enum, in order of their declaration.