Uses of Class
com.articulate.sigma.parsing.FormulaAST
Packages that use FormulaAST
-
Uses of FormulaAST in com.articulate.sigma.parsing
Fields in com.articulate.sigma.parsing with type parameters of type FormulaASTModifier and TypeFieldDescriptionTPTPWriter.formulasSuokifVisitor.groundSuokifVisitor.hasNumberSuokifVisitor.hasPredVarSuokifVisitor.hasRowVarstatic Map<String, Set<FormulaAST>> SuokifVisitor.keysSuokifVisitor.multiplePredVarSuokifVisitor.multipleRowVarSuokifVisitor.nonRulePredRowstatic Map<Integer, FormulaAST> SuokifVisitor.resultSuokifVisitor.rulesMethods in com.articulate.sigma.parsing that return FormulaASTModifier and TypeMethodDescriptionVarTypes.constrainVars(String rel, String var, FormulaAST f) Constrain variables found in the argument list of a predicate variable where the relation 'rel' will be substitutedstatic FormulaASTFormulaAST.createComment(String input) the textual version of the formulaFormulaAST.mergeFormulaAST(FormulaAST f2) Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.FormulaAST.mergeFormulaAST(List<FormulaAST> ar) Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.SuokifVisitor.visitAndsent(com.articulate.sigma.parsing.SuokifParser.AndsentContext context) andsent : '(' 'and' sentence sentence+ ')' ;SuokifVisitor.visitArgument(com.articulate.sigma.parsing.SuokifParser.ArgumentContext context) argument : (sentence | term) ;SuokifVisitor.visitComment(com.articulate.sigma.parsing.SuokifParser.CommentContext context) SuokifVisitor.visitEqsent(com.articulate.sigma.parsing.SuokifParser.EqsentContext context) eqsent : '(' 'equal' term term ')' ; argument : (sentence | term) ; term : (funterm | variable | string | number | FUNWORD | IDENTIFIER ) ;SuokifVisitor.visitExists(com.articulate.sigma.parsing.SuokifParser.ExistsContext context) exists : '(' 'exists' '(' variable+ ')' sentence ')' ;SuokifVisitor.visitForall(com.articulate.sigma.parsing.SuokifParser.ForallContext context) forall : '(' 'forall' '(' variable+ ')' sentence ')' ;SuokifVisitor.visitFunterm(com.articulate.sigma.parsing.SuokifParser.FuntermContext context) funterm : '(' FUNWORD argument+ ')' ;SuokifVisitor.visitIff(com.articulate.sigma.parsing.SuokifParser.IffContext context) iff : '(' 'invalid input: '<'=>' sentence sentence ')' ;SuokifVisitor.visitImplies(com.articulate.sigma.parsing.SuokifParser.ImpliesContext context) implies : '(' '=>' sentence sentence ')' ;SuokifVisitor.visitLogsent(com.articulate.sigma.parsing.SuokifParser.LogsentContext context) logsent : (notsent | andsent | orsent | xorsent | implies | iff | eqsent) ;SuokifVisitor.visitNotsent(com.articulate.sigma.parsing.SuokifParser.NotsentContext context) notsent : '(' 'not' sentence ')' ;SuokifVisitor.visitNumber(com.articulate.sigma.parsing.SuokifParser.NumberContext context) SuokifVisitor.visitOrsent(com.articulate.sigma.parsing.SuokifParser.OrsentContext context) orsent : '(' 'or' sentence sentence+ ')' ;SuokifVisitor.visitQuantsent(com.articulate.sigma.parsing.SuokifParser.QuantsentContext context) quantsent : (forall | exists) ;SuokifVisitor.visitRelsent(com.articulate.sigma.parsing.SuokifParser.RelsentContext context) relsent : ('(' IDENTIFIER argument+ ')') | ('(' variable argument+ ')') ; argument : (sentence | term) ; term : (funterm | variable | string | number | FUNWORD | IDENTIFIER ) ; Set the types of any variables that appear in an instance or subclass declarationSuokifVisitor.visitSentence(com.articulate.sigma.parsing.SuokifParser.SentenceContext context) sentence : (relsent | logsent | quantsent | variable) ;SuokifVisitor.visitString(com.articulate.sigma.parsing.SuokifParser.StringContext context) SuokifVisitor.visitTerm(com.articulate.sigma.parsing.SuokifParser.TermContext context) term : (funterm | variable | string | number | FUNWORD | IDENTIFIER ) ;SuokifVisitor.visitVariable(com.articulate.sigma.parsing.SuokifParser.VariableContext context) variable : (REGVAR | ROWVAR) ;SuokifVisitor.visitXorsent(com.articulate.sigma.parsing.SuokifParser.XorsentContext context) xorsent : '(' 'xor' sentence sentence+ ')' ;Methods in com.articulate.sigma.parsing that return types with arguments of type FormulaASTModifier and TypeMethodDescriptionRowVar.expandRowVar(FormulaAST f) RowVar.expandRowVar(Set<FormulaAST> rowvars) RowVar.expandVariableArityRowVar(Set<FormulaAST> flist, String var) Preprocessor.preprocess(Set<FormulaAST> rowvar, Set<FormulaAST> predvar, Set<FormulaAST> rules) PredVarInst.processAll(Collection<FormulaAST> fs) PredVarInst.processOne(FormulaAST f) Note that if there is more than one predicate variable we have to cycle through all the formulas generated for the first variablePreprocessor.reparse(Collection<FormulaAST> rules) After preprocessing, parse the new formula string in order to set the caches correctlyMethods in com.articulate.sigma.parsing with parameters of type FormulaASTModifier and TypeMethodDescriptionSortals.addSortals(FormulaAST f) Find the most specific type constraint for each variable and create a new String of the formula with type guardsSortals.addSortals(FormulaAST f, Map<String, Set<String>> types) Add type guards to a formula by making it the consequent of a rule and making type tests into a new antecedentvoidSuokifVisitor.addToKeys(String k, FormulaAST f) VarTypes.constrainVars(String rel, String var, FormulaAST f) Constrain variables found in the argument list of a predicate variable where the relation 'rel' will be substitutedvoidSortals.elimSubsumedTypes(FormulaAST f) Eliminate more general types in favor of their more specific subclasses (if any)RowVar.expandRowVar(FormulaAST f) RowVar.findArities(FormulaAST f) voidVarTypes.findEquationType(FormulaAST f) Go through the equation map of a formula.voidVarTypes.findRelationsAsArgs(FormulaAST f) if a relation is used as an argument, add a suffix to that constant in the literal for the constant list.voidVarTypes.findType(FormulaAST f) Go through the argument map of a formula, which consists of all predicates and their arguments in each position, within this formula, and find the type of that argument.voidSuokifVisitor.generateNonRuleKeys(FormulaAST f) voidSuokifVisitor.generateRuleKeys(FormulaAST f) FormulaAST.mergeFormulaAST(FormulaAST f2) Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.PredVarInst.processOne(FormulaAST f) Note that if there is more than one predicate variable we have to cycle through all the formulas generated for the first variablevoidSortals.winnowAllTypes(FormulaAST f) Find the most specific type constraint for each variableTPTPWriter.wrappedMetaFormat(FormulaAST f) Method parameters in com.articulate.sigma.parsing with type arguments of type FormulaASTModifier and TypeMethodDescriptionRowVar.expandRowVar(Set<FormulaAST> rowvars) RowVar.expandVariableArityRowVar(Set<FormulaAST> flist, String var) FormulaAST.mergeFormulaAST(List<FormulaAST> ar) Merge arguments to a predicate, which may themselves be complex formulas, with an existing formula.Preprocessor.preprocess(Set<FormulaAST> rowvar, Set<FormulaAST> predvar, Set<FormulaAST> rules) PredVarInst.processAll(Collection<FormulaAST> fs) Preprocessor.reparse(Collection<FormulaAST> rules) After preprocessing, parse the new formula string in order to set the caches correctlyConstructors in com.articulate.sigma.parsing with parameters of type FormulaASTConstructor parameters in com.articulate.sigma.parsing with type arguments of type FormulaAST