Options
All
  • Public
  • Public/Protected
  • All
Menu

Default InputState implementation

Hierarchy

  • DefaultInputState

Implements

Index

Constructors

constructor

Properties

Private ism

Optional listeners

listeners: Listeners

offset

offset: number

Methods

advance

consume

exhausted

  • exhausted(): boolean

peek

  • peek(n: number): string

Private seenSince

skipTo

skipWhile

  • skipWhile(skip: function, n: number): Skipped
  • Skip input while it matches the given function

    Parameters

    • skip: function

      skip till

        • (char: string): boolean
        • Parameters

          • char: string

          Returns boolean

    • n: number

      number of characters to look at

    Returns Skipped

Generated using TypeDoc