public class TruthTableParser
extends java.lang.Object
Constructor and Description |
---|
TruthTableParser() |
Modifier and Type | Method and Description |
---|---|
static Formula |
parseTable(java.lang.String table,
java.util.List<Variable> inputs)
Parses a table of boolean values and returns the corresponding DNF
sentence
|
static java.util.List<Variable> |
parseVariables(java.lang.String input)
Parses a set of variables
|
public static Formula parseTable(java.lang.String table, java.util.List<Variable> inputs)
table
- the truth tableinputs
- a list with the propositional variables in the same order as
the entries in the truth tablepublic static java.util.List<Variable> parseVariables(java.lang.String input)
input
- the input to parse