Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputBuffer

Non-blocking token stream buffer.

Hierarchy

Index

Methods

Abstract capacity

  • capacity(): number

Abstract clone

column

  • column(): number

Abstract get

  • get(index: number): number

Abstract has

  • has(index: number): boolean

Abstract head

  • head(): number

Abstract id

  • id(): unknown | null
  • id(id: unknown | null): InputBuffer

Abstract index

Abstract isCont

  • isCont(): boolean

Abstract isDone

  • isDone(): boolean

Abstract isEmpty

  • isEmpty(): boolean
  • Returns true when no lookahead token is currently available, but additional input may be available at some point in the future. i.e. this Input is in the empty state.

    Returns boolean

Abstract isError

  • isError(): boolean
  • Returns true when no lookahead token is currently available due to an error with the token stream. i.e. this Input is in the error state. When true, trap() will return the input error

    Returns boolean

Abstract isPart

  • isPart(): boolean
  • isPart(isPart: boolean): InputBuffer

Abstract limit

line

  • line(): number

Abstract mark

offset

  • offset(): number

Abstract remaining

  • remaining(): number

Abstract seek

Abstract set

  • set(index: number, token: number): void

Abstract settings

Abstract step

trap

  • trap(): Error

Static done

Static empty

Static error