Hierarchy

  • Token

Constructors

Properties

Constructors

Properties

alias?: TokenName

The alias(es) of the token. Multiple aliases are separated by spaces.

content: string | TokenStream

The strings or tokens contained by this token.

This will be a token stream if the pattern matched also defined an inside grammar.

length: number

Length of the full string this token was created from.

type: TokenName

The type of the token.

This is usually the key of a pattern in a Grammar.

Generated using TypeDoc