Constructor for TMToken.
The start index of the token.
The end index of the token.
The text of the token.
The current state of the token.
The current state of the token.
The end index of the token.
The start index of the token.
The text of the token.
The type of the token, default is 'token'.
Static
fromStatic method to create a TMToken from a TokenizerSpans object.
The TokenizerSpans object to convert.
Class representing a token in the TokenManager.
Description
This class implements the TMTokens interface and represents a token with its start, end, text, and current state.