UNPKG

chop-logic-core

Version:

Core classes, methods and functions for calculating logical formulas and constructing proofs within the Chop Logic project.

15 lines (14 loc) 628 B
import type { PropSymbol } from "../../models"; /** * Converts a logical expression string into an array of PropSymbols. * * - Uses `tokenizeString` to split the input string into tokens. * - Uses `createPropositionalSymbol` to convert tokens into `PropSymbol` objects. * - Assigns an index-based position to each symbol. * * @param input - The logical expression as a string. * @returns An array of `PropSymbol` objects representing the parsed expression. * @throws {Error} If the input contains invalid characters. * @category Builders */ export declare function createPropExpression(input: string): PropSymbol[];