TokenType enum

The type of a token.

Inheritance
Available extensions

Values

at → const TokenType

The at token (@).

colon → const TokenType

The colon token (:)

comma → const TokenType

The comma token (,).

doubleLiteral → const TokenType

/// The double literal.

It follows the following grammar:

<digit_separator> ::= "_"
<integer_literal> ::= <digit> (<digit_separator>* <digit>+)*
<double_literal>  ::= <integer_literal> "." <integer_literal>

Some examples of valid double literals:

0.100
53.000_001
5_2.000_001
5__2.000___001
endOfFile → const TokenType

The end-of-file token.

equalitySign → const TokenType

The equality sign token (=).

eroteme → const TokenType

The eroteme token (?).

The eroteme is also known as the quesiton mark.

falseKeyword → const TokenType

The false keyword.

falsum → const TokenType

The falsum token ().

identifier → const TokenType

An identifier.

pint°'s identifier follows Dart's one. The grammar is the following:

<identifier>       ::= <identifier_start> <identifier_part>*
<identifier_start> ::= [A-Za-z_$]
<identifier_part>  ::= <identifier_start> | [0-9]
importIdentifier → const TokenType

An import identifier.

The import identifier follows the grammar:

<import_identifier> ::= "@"? <identifier> ( "/" <identifier> )*
importKeyword → const TokenType

The import keyword token.

integerLiteral → const TokenType

The integer literal.

It follows the following grammar:

<digit_separator> ::= "_"
<integer_literal> ::= <digit> (<digit_separator>* <digit>+)*

Some examples of valid integer literals:

0100
1094812
100_000
1__000
leftBrace → const TokenType

The left brace token ({).

leftBracket → const TokenType

The left brace token ([).

leftParenthesis → const TokenType

The left parenthesis token (().

letKeyword → const TokenType

The let keyword.

plusSign → const TokenType

The plus sign token (+).

reserved → const TokenType

A reserved token.

rightBrace → const TokenType

The right brace token (}).

rightBracket → const TokenType

The right brace token (]).

rightParenthesis → const TokenType

The right parenthesis token ()).

slash → const TokenType

The slash token (/).

stringLiteral → const TokenType

The string literal.

String literals are still subspecified. Currently, they will just be "something"

trueKeyword → const TokenType

The true keyword token.

typeKeyword → const TokenType

The type keyword token.

unitLiteral → const TokenType

The unit literal.

It's represented by the lexeme ().

verum → const TokenType

The verum token ().

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.
override

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.