master > master: auslagern + Entfernung von überflüssigen Methoden

This commit is contained in:
RD
2021-05-07 08:18:50 +02:00
parent ff8b7132f0
commit 038eb8a754
4 changed files with 83 additions and 73 deletions

View File

@@ -19,7 +19,6 @@ from aussagenlogik.schema import isLongConjunction;
from aussagenlogik.schema import isDisjunction;
from aussagenlogik.schema import isLongDisjunction;
from aussagenlogik.schema import isImplication;
from aussagenlogik.schema import getName;
from aussagenlogik.schema import SyntaxBaum;
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -35,10 +34,10 @@ from aussagenlogik.schema import SyntaxBaum;
def rekursiv_eval(fml: SyntaxBaum, I: List[str]) -> int:
subfml = fml.children;
if isAtom(fml):
name = getName(fml);
name = fml.expr;
return 1 if (name in I) else 0;
if isBeliebig(fml):
name = getName(fml);
name = fml.expr;
return 1 if (name in I) else 0;
elif isTrueSymbol(fml):
return 1;