type
The type of the token.
This is usually the key of a pattern in a Grammar.
type string
content
The strings or tokens contained by this token.
This will be a token stream if the pattern matched also defined an inside grammar.
type string | SyntaxTokenStream
alias
The alias(es) of the token. Always an array, even if empty or single value.
type Array<string>
length
type number
constructor
type new (type: string, content: string | SyntaxTokenStream, alias: string | string[] | undefined, matched_str?: string): SyntaxToken
type
stringcontent
string | SyntaxTokenStreamalias
string | string[] | undefinedmatched_str
string''