Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LexerToken

A token that's generated from the ConditionLexer. It has a type, a terminal flag, and a value, and is intended for use with the ConditionParser.

Hierarchy

  • LexerToken

Index

Constructors

Properties

Constructors

constructor

  • new LexerToken(terminal: boolean, type: string, value: string | number): LexerToken
  • Initialize the token.

    Parameters

    • terminal: boolean

      Whether or not the token is terminal.

    • type: string

      The token type, as a string (e.g. boolean-operator).

    • value: string | number

      The value of the token.

    Returns LexerToken

Properties

terminal

terminal: boolean

Whether or not the token is terminal.

type

type: string

The token type, as a string (e.g. boolean-operator).

value

value: string | number

The value of the token.

Generated using TypeDoc