Documentation - v1.5.3
    Preparing search index...

    Class representing a token in the TokenManager.

    This class implements the TMTokens interface and represents a token with its start, end, text, and current state.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructor for TMToken.

      Parameters

      • start: number

        The start index of the token.

      • end: number

        The end index of the token.

      • text: string

        The text of the token.

      • currentState: string

        The current state of the token.

      Returns TMToken

    Properties

    currentState: string

    The current state of the token.

    end: number

    The end index of the token.

    start: number

    The start index of the token.

    text: string

    The text of the token.

    type: string = 'token'

    The type of the token, default is 'token'.

    Methods