Interface IPushDownAutomaton<T>

Type Parameters

  • T

Hierarchy

  • IPushDownAutomaton

Implemented by

Properties

Methods

Properties

size: number

Number of states in the PDA

state?: T

Current state

Methods

  • Remove the current state from the stack and return it

    Returns undefined | T

  • Put a new state on the stack and return a ref to the created instance

    Type Parameters

    • P extends TTypeProto<T>

    Parameters

    • state: P

    Returns T

Generated using TypeDoc