proposit-core
    Preparing search index...

    Interface TFormulaTreeVisitor<T>

    Visitor callbacks for walking a premise's expression tree. Each method handles one node type and returns a caller-defined result.

    interface TFormulaTreeVisitor<T> {
        empty(): T;
        formula(child: T): T;
        operator(
            type: "not" | "and" | "or" | "xor" | "implies" | "iff",
            children: T[],
        ): T;
        variable(symbol: string, variableId: string): T;
    }

    Type Parameters

    • T
    Index

    Methods

    • Called for each operator. Receives the operator type and rendered children.

      Parameters

      • type: "not" | "and" | "or" | "xor" | "implies" | "iff"
      • children: T[]

      Returns T