TokenType enum

This defines the different kinds of tokens or meaningful chunks of code that the parser knows how to consume. These let us distinguish, for example, between a string "foo" and a variable named "foo".

HACK: A typical tokenizer would actually have unique token types for each keyword (print, goto, etc.) so that the parser doesn't have to look at the names, but Jasic is a little more crude.

Constants

COLON → const TokenType
const TokenType(9)
COMMENT → const TokenType
const TokenType(6)
EOF → const TokenType
const TokenType(0)
INTERPOLATION → const TokenType
const TokenType(12)
L10N → const TokenType
const TokenType(13)
LEFT_BRACKET → const TokenType
const TokenType(7)
LINE → const TokenType
const TokenType(5)
NUMBER → const TokenType
const TokenType(2)
RIGHT_BRACKET → const TokenType
const TokenType(8)
SCOPE_BEGIN → const TokenType
const TokenType(10)
SCOPE_END → const TokenType
const TokenType(11)
STRING → const TokenType
const TokenType(3)
STRING_BLOCK → const TokenType
const TokenType(4)
values → const List<TokenType>

A constant List of the values in this enum, in order of their declaration.

const List<TokenType>
WORD → const TokenType
const TokenType(1)

Properties

index → int

The integer index of this enum.

final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited