Class Token

Assembly: redb.Route.dll

Represents a single token produced by lexical analysis.

public class Token

Inheritance

Object→Token

Properties

Position

Gets the position (zero-based index) of this token in the input string.

public int Position { get; }

Type

Gets the type of this token.

public TokenType Type { get; }

Value

Gets the textual value of this token.

public string Value { get; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

Token(TokenType, string, int)

Initializes a new instance of the class.