sim-ecs - v0.6.5
    Preparing search index...

    Interface IPushDownAutomaton<T>

    interface IPushDownAutomaton<T> {
        size: number;
        state?: T;
        clear(): void;
        pop(): undefined | T;
        push<P extends TTypeProto<T>>(state: P): T;
    }

    Type Parameters

    • T

    Implemented by

    Index

    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