TokenType enum

All possible types identified during a Lexical analysis

Inheritance

Constructors

TokenType()
const

Values

terminal → const TokenType

Represents a terminal symbol

genericTerminal → const TokenType

Represents a generic terminal symbol. It is a symbol that can be replaced with a valid symbol defined in a regex

attributionValue → const TokenType

Currently, regex expressions parsed in input are not validate or subdivided. So this tokenType informs all right expression on a attribution

characterSet → const TokenType

A character set that make part of a regex

production → const TokenType

Defines a production non-terminal symbol

operator → const TokenType

Defines a operator that can be used in the grammar

Such as "|", "=", "::="

string → const TokenType

Defines a string that is between quotes

comment → const TokenType

Represents a comment in BNF way

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.
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.