master > master: kleiner syntaxfehler

This commit is contained in:
RD 2021-05-07 20:21:28 +02:00
parent 6b30155953
commit d4a3f2177b
1 changed files with 1 additions and 4 deletions

View File

@ -9,9 +9,6 @@ from __future__ import annotations;
# install: lark; lark-parser; lark-parser[regex]. # install: lark; lark-parser; lark-parser[regex].
# https://lark-parser.readthedocs.io/en/latest/grammar.html # https://lark-parser.readthedocs.io/en/latest/grammar.html
from lark import Lark; from lark import Lark;
from lark import Tree;
from typing import List;
from typing import Union;
from aussagenlogik.syntaxbaum import SyntaxBaum; from aussagenlogik.syntaxbaum import SyntaxBaum;
@ -66,7 +63,7 @@ def isDisjunction(fml: SyntaxBaum) -> bool:
return fml.kind == 'disj'; return fml.kind == 'disj';
def isLongDisjunction(fml: SyntaxBaum) -> bool: def isLongDisjunction(fml: SyntaxBaum) -> bool:
return fml.kind == ['disj', 'disj_lang']; return fml.kind in ['disj', 'disj_lang'];
def isImplication(fml: SyntaxBaum) -> bool: def isImplication(fml: SyntaxBaum) -> bool:
return fml.kind == 'impl'; return fml.kind == 'impl';