Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConditionLexer

Class that lexicographically parses a condition object into tokens.

Hierarchy

  • ConditionLexer

Index

Methods

Methods

parse

  • Parse the sentence into tokens.

    Parameters

    • condStr: string | object

      The condition string to parse. If condStr is an object it is converted to a string using JSON.stringify.

    Returns LexerToken[]

    An array of tokens. Each token object has the following properties: terminal, which is a boolean indicating if the token is a terminal or not; type, as described by the condition BNF; and value.

Generated using TypeDoc