Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/internal/InputStateFactory"

Index

Functions

inputStateFromStream

  • Return an input state from a stream

    Parameters

    • str: InputStream

      input stream

    • Optional l: Listeners

      listeners observing input characters as they are read

    • Default value offset: number = 0

      default 0. If this is specified it enables us to pretend that we are beginning at a given offset. This allows us to preserve offsets when matching within a match.

    Returns InputState

inputStateFromString

  • Return an input state from a string

    Parameters

    • s: string

      string

    • Optional l: Listeners

      listeners observing input characters as they are read

    • Default value offset: number = 0

      default 0. If this is specified it enables us to pretend that we are beginning at a given offset. This allows us to preserve offsets when matching within a match.

    Returns InputState

Generated using TypeDoc