Package com.articulate.sigma.parsing
Class FormulaAST
java.lang.Object
com.articulate.sigma.Formula
com.articulate.sigma.parsing.FormulaAST
- All Implemented Interfaces:
Serializable,Comparable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA class for holding information about constants (non-variables) and the literal in which they appearclassA class for holding information about row variables and the literal in which they appear -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleancom.articulate.sigma.parsing.SuokifParser.SentenceContextSet<org.antlr.v4.runtime.ParserRuleContext> Fields inherited from class com.articulate.sigma.Formula
allVarsCache, allVarsPairCache, AND, args, CEILINGFN, CLASS_SYMBOL_SUFFIX, comment, COMPARISON_OPERATORS, debug, DEFN_PREDICATES, derivation, DIVIDEFN, DOC_PREDICATES, endFilePosition, endLine, EQUAL, EQUANT, errors, existVarsCache, FLOORFN, FN_SUFF, GT, GTET, higherOrder, IF, IFF, INEQUALITIES, isFunctional, isGround, isTFF, KAPPAFN, LOG_FALSE, LOG_TRUE, LOGICAL_OPERATORS, LP, LT, LTET, MATH_FUNCTIONS, MAX_PREDICATE_ARITY, MINUSFN, NOT, OR, PLUSFN, predVarCache, qlist, quantVarsCache, R_PREF, relation, REMAINDERFN, ROUNDFN, rowVarCache, RP, RVAR, simpleClause, SK_PREF, SKFN, sourceFile, SPACE, startLine, stringArgs, TERM_MENTION_SUFFIX, TERM_SYMBOL_PREFIX, TERM_VARIABLE_PREFIX, termCache, tffSorts, theFofFormulas, theTffFormulas, theTptpFormulas, TIMESFN, univVarsCache, unquantVarsCache, UQUANT, V_PREF, varTypeCache, VVAR, VX, warnings, XOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRowVarStruct(String var, FormulaAST.RowStruct rs) static FormulaASTcreateComment(String input) the textual version of the formulaMerge arguments to a predicate, which may themselves be complex formulas, with an existing formula.Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.voidthe textual version of the formulaMethods inherited from class com.articulate.sigma.Formula
addAllNoDup, append, argumentsToArrayList, argumentsToArrayListString, atom, atom, badQuantification, caddr, cadr, car, carAsFormula, cddr, cddrAsFormula, cdr, cdrAsFormula, clearTheClausalForm, collectAllVariables, collectAllVariablesOrdered, collectQuantifiedUnquantifiedVariablesRecurse, collectQuantifiedVariables, collectTerms, collectUnquantifiedVariables, collectVariables, compareTo, complexArgumentsToArrayList, complexArgumentsToArrayListString, cons, cons, copy, createID, deepCopy, deepEquals, empty, empty, equals, equals, findType, format, gatherRelationConstants, gatherRelationsWithArgTypes, getArgument, getClauses, getDualOperator, getErrors, getFormula, getLineNumber, getSourceFile, getStringArgument, getTheClausalForm, getTheTptpFormulas, getVarMap, getVarType, getVarTypes, hashCode, htmlFormat, htmlFormat, isBalancedList, isBinary, isCached, isCommutative, isComparisonOperator, isEpistemic, isExistentiallyQuantified, isFunction, isFunctionalTerm, isFunctionalTerm, isGround, isGround, isHigherOrder, isHorn, isInequality, isLogicalOperator, isMathFunction, isModal, isNegatedQuery, isOtherHOL, isQuantifier, isQuantifierList, isQuery, isRegularVariable, isRowVar, isRule, isSimpleClause, isSimpleNegatedClause, isSkolemTerm, isTemporal, isTerm, isTFF, isTrueFalse, isUniversallyQuantified, isVariable, isVariable, listLength, listP, listP, literalToArrayList, logicallyEquals, logicallyEquals, main, makeQuantifiersExplicit, mapFormulaVariables, negate, postProcess, read, removeTemporalRelations, rename, renameVariableArityRelations, replaceQuantifierVars, replaceVar, setFormula, setSourceFile, showHelp, substituteVariables, testArg2ArrayList, testBigArgs, testCar1, testCollectVariables, testComplexArgs, testIsSimpleClause, testReplaceVar, textFormat, toProlog, toString, toStringMeta, unifyWith, validArgs, validArgs
-
Field Details
-
argMap
-
eqList
-
explicitTypes
-
varTypes
-
rowvarLiterals
-
constants
-
rowVarStructs
-
parsedFormula
public com.articulate.sigma.parsing.SuokifParser.SentenceContext parsedFormula -
isDoc
public boolean isDoc -
isRule
public boolean isRule -
containsNumber
public boolean containsNumber -
antecedentTerms
-
consequentTerms
-
strForm
-
-
Constructor Details
-
FormulaAST
public FormulaAST() -
FormulaAST
-
-
Method Details
-
mergeFormulaAST
Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula. -
mergeFormulaAST
Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula. -
addRowVarStruct
-
createComment
the textual version of the formula -
printCaches
public void printCaches()the textual version of the formula- Overrides:
printCachesin classFormula
-